Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
-depsc wrong text alignment
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, I'm using Matlab R2017a to generate hundreds of figures with it.
The code reads like this:
B = categorical(ListNames);
figure
h1=barh(B,StopRD,'EdgeColor',[1,1,1]);
hold on
h2=barh(B,StartRD,'w','EdgeColor',[1,1,1]);
%stuff to make it look nice
file_name=strcat('Phenology_',Site);
print(file_name{1},'-depsc')
"ListNames" is a list of strings that name each row. The problem I have is that those names are beautifully aligned to the left when I see the figure, but they keep a random distance to the axis after exproting it into eps. I know I could export it to png or whatever, but I need vector files as the output.
This is how it looks like before exporting:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192020/image.png)
And this is how it looks after:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192021/image.png)
Any ideas?
0 Commenti
Risposte (0)
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!