Re: iPlot export PostScript error with logarithmic X axis [message #49814] |
Thu, 17 August 2006 16:21 |
Benjamin Hornberger
Messages: 258 Registered: March 2004
|
Senior Member |
|
|
R.G. Stockwell wrote:
> "Benjamin Hornberger" <benjamin.hornberger@stonybrook.edu> wrote in message
> news:44e4e9c1$1_3@marge.ic.sunysb.edu...
>
>> Hi all,
>>
>> I am creating a plot in iPlot and want to export it to EPS. It works fine
>> if the X axis is not logarithmic. If I make the X axis logarithmic (which
>> I need), the EPS cannot be read by either Ghostview or Illustrator.
>>
>> The .isv file and the two EPS files (with and without log X axis) are at
>>
>> http://xray1.physics.sunysb.edu/~hornberg/scratch/rpsd.isv
>> http://xray1.physics.sunysb.edu/~hornberg/scratch/rpsd.eps
>> http://xray1.physics.sunysb.edu/~hornberg/scratch/rpsd_noxlo g.eps
>>
>> Any insight? Let me know if you need more info.
>>
>> Thanks for your help,
>> Benjamin
>
>
> Do you have a 0 in the x axis array?
> Perhaps the xlog is giving you a math exception that IDL can ignore,
> but crashes PS.
> Your error message is:
>
> "Error: /undefined in -1.#IND"
>
> made me think of that.
>
> Cheers,
> bob
>
>
Yes, that was the problem. The X array starts at zero, but then in iPlot
I set the X min to 0.1 (otherwise, I can't even select X log).
So I have to strip off the first element of each vector before iPlotting
it. Not very convenient, but ...
Thanks!
Benjamin
|
|
|
|