Let's get it right - Plotting ans Saving [message #93359] |
Wed, 22 June 2016 21:16 |
belkaraza
Messages: 6 Registered: June 2016
|
Junior Member |
|
|
Hey,
I'm new to IDL and I have some problems regarding plotting and saving these as ps files.
For example, findgen(9).
First let me explain what I expect how my plot should look like:
I want the graph with no or small borders. So I can use it easily in Latex without using pdfcrop to cut off the edges manually, because I want to generate several thousand plots.
Let's say I want to plot and save findgen(9) via new graphics
P = plot(findgen(9))
P.save, 'test.ps', resolution=600, Border=0
Then my output graph will be located in the bottom right side pf the graphics region. The right end of the x axis will be nearly pushed back outside the "file". I tried it with various functions ans sometimes the last x tick name will ger cut off. I tried this with and without the border keyword, but it won't make any difference. Only if I set the resolution to values around 2000-3000 it will not be cut off. But I still have this large white area above my graph.
How could I accomplish my expected result with direct graphics? I am totally irritated on how to find the correct xy margins, offsets etc. maybe one of you knows of a good tutorial or guide :)
Cheers,
Kevin
|
|
|