X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 25 Jun 2016 04:51 PM by  anon
Plot Functions: How to save correctly plus placement of plot
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
25 Jun 2016 04:51 PM
    Hey, example: p = plot(findgen(9), xtitle='x test', ytitle='y test', title='Test Plot') p.save, 'testsave.eps', Resolution=600 The saved graph is not centered, but shifted to the right edge of the paper. I had the problem with some plots, that the far end of the x axis gets cut off. How can I change my code to center the plot? Another problem regarding the centering,is that the plot is centered around the graph region and not around the plot region. So if I use epstopdf for latex it will create an cropped pdf file with the plot, but the center will not be the center of the plot itself but from the total plot with y axis title etc. . Thats why the plot will be shifted to the right if I include it into Latex. Any fix for that? Cheers, Kevin

    Deleted User



    Basic Member


    Posts:143
    Basic Member


    --
    28 Jun 2016 10:55 AM
    You may be able to fiddle with the MARGIN keyword when generating the plot to adjust where it is going to be saved when using the SAVE method to save an EPS file. For example: IDL> p = plot(findgen(9), xtitle='x test', ytitle='y test', title='Test Plot', margin=[.072,.072,.085,.072]) IDL> p.save, 'testsave.eps', Resolution=600 David Harris GS
    You are not authorized to post a reply.