comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Making a scaleable plot for use in publications
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Making a scaleable plot for use in publications [message #81828] Wed, 24 October 2012 18:10
liamsteele is currently offline  liamsteele
Messages: 4
Registered: October 2012
Junior Member
On Thursday, 25 October 2012 01:12:32 UTC+1, David wrote:
> Coyote writes:
>
>
>
>> I presume you are talking about PDF files. I do it like this using Coyote Graphics:
>
>>
>
>> cgHistoplot, cgDemodata(7), /Fill, Output='histoplot.ps'
>
>> cgPS2PDF, 'histoplot.ps'
>
>
>
> I'm not sure how the PDF functionality got missed, but I just
>
> checked in a new cgPS2Raster file with PDF functionality, so
>
> you don't have to use two steps to create a PDF file. If you
>
> download the new cgPS2Raster file here:
>
>
>
> http://www.idlcoyote.com/programs/cgps2raster.pro
>
>
>
> You can create PDF files from IDL commands directly:
>
>
>
> cgHistoplot, cgDemodata(7), /Fill, Output='histoplot.pdf'
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
>
> Sepore ma de ni thue. ("Perhaps thos speakest truth.")


Brilliant stuff David!

I'll certainly give your routine a go when I'm next in the office. Thanks for all the help. :)
Re: Making a scaleable plot for use in publications [message #81829 is a reply to message #81828] Wed, 24 October 2012 17:12 Go to previous message
David is currently offline  David
Messages: 24
Registered: April 1997
Junior Member
Coyote writes:

> I presume you are talking about PDF files. I do it like this using Coyote Graphics:
>
> cgHistoplot, cgDemodata(7), /Fill, Output='histoplot.ps'
> cgPS2PDF, 'histoplot.ps'

I'm not sure how the PDF functionality got missed, but I just
checked in a new cgPS2Raster file with PDF functionality, so
you don't have to use two steps to create a PDF file. If you
download the new cgPS2Raster file here:

http://www.idlcoyote.com/programs/cgps2raster.pro

You can create PDF files from IDL commands directly:

cgHistoplot, cgDemodata(7), /Fill, Output='histoplot.pdf'

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
Re: Making a scaleable plot for use in publications [message #81830 is a reply to message #81829] Wed, 24 October 2012 16:48 Go to previous message
David is currently offline  David
Messages: 24
Registered: April 1997
Junior Member
Liam writes:

> Sorry, yes, I meant plots in PDF documents.
>
> Will the cgPS2PDF work for all eps plots? Say I use the contour command to make a plot, with true type fonts. Will that scale properly as well? I haven't got access to IDL at the moment, so can't check.

Honestly, I don't know what will happen with EPS plots. I nearly
always just create PS plots. But, yes, cgPS2PDF should work
with any PostScript plot. The program requires GhostScript be
installed, and it is GhostScript that is doing the convertion
of PostScript to PDF.

EPS files have bounding boxes. I don't know how these
are handled by GhostScript when doing the conversion
to PDF. EPS files are restricted to Portrait mode, too,
which may matter to you when you create the PDF output.

Cheers,

David

P.S. It looks to me like EPS files are restricted in
size (what I would expect, actually) when they are
converted to PDF.

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
Re: Making a scaleable plot for use in publications [message #81833 is a reply to message #81830] Wed, 24 October 2012 16:30 Go to previous message
liamsteele is currently offline  liamsteele
Messages: 4
Registered: October 2012
Junior Member
On Wednesday, 24 October 2012 23:48:16 UTC+1, Coyote wrote:
> On Wednesday, October 24, 2012 4:14:22 PM UTC-6, liams...@lavabit.com wrote:
>
>
>
>> I don't know quite how to describe this technically, but here goes...
>
>>
>
>> I usually produce my IDL plots as an eps using truetype fonts. However, I have noticed plots in scientific publications that no matter how much you zoom in to them, the fonts/axes/graph lines always rescale so they don't look blocky.
>
>>
>
>> Is there a simple way of doing this in IDL? I've tried searching the web, but come up empty handed.
>
>
>
> I presume you are talking about PDF files. I do it like this using Coyote Graphics:
>
>
>
> cgHistoplot, cgDemodata(7), /Fill, Output='histoplot.ps'
>
> cgPS2PDF, 'histoplot.ps'
>
>
>
> Cheers,
>
>
>
> David


Thanks David.

Sorry, yes, I meant plots in PDF documents.

Will the cgPS2PDF work for all eps plots? Say I use the contour command to make a plot, with true type fonts. Will that scale properly as well? I haven't got access to IDL at the moment, so can't check.

Thanks again.
Re: Making a scaleable plot for use in publications [message #81834 is a reply to message #81833] Wed, 24 October 2012 15:48 Go to previous message
DavidF[1] is currently offline  DavidF[1]
Messages: 94
Registered: April 2012
Member
On Wednesday, October 24, 2012 4:14:22 PM UTC-6, liams...@lavabit.com wrote:

> I don't know quite how to describe this technically, but here goes...
>
> I usually produce my IDL plots as an eps using truetype fonts. However, I have noticed plots in scientific publications that no matter how much you zoom in to them, the fonts/axes/graph lines always rescale so they don't look blocky.
>
> Is there a simple way of doing this in IDL? I've tried searching the web, but come up empty handed.

I presume you are talking about PDF files. I do it like this using Coyote Graphics:

cgHistoplot, cgDemodata(7), /Fill, Output='histoplot.ps'
cgPS2PDF, 'histoplot.ps'

Cheers,

David
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Modern IDL "catch up" sale
Next Topic: VALUE_LOCATE and NaNs

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:34:46 PDT 2025

Total time taken to generate the page: 0.00420 seconds