| Re: Barplot using Coyote, the colors keep changing, why? [message #86709 is a reply to message #86708] |
Fri, 29 November 2013 05:47  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Galaxytraveler writes:
>
> Thanks David for looking into and for even writing a program.
>
> I have been trying to do all you suggested (working on it for 7-9 hours now), and are hoping you have one more advice.
>
> I first downloading your newest library, then delete all older versions. Then I copied your program into a new file and tried to run it. Nice graphs shows up but no file.ps was however created where it was suppose to or anywhere on my computer. I then installed ghostscript and then the imagemagick. I got the path to the 'convert' file into the idl path. Restarting IDL after each step to be sure.
>
> But your program still didn't create the file. I then tried change the program, so that it wasn't waiting the the PS keyword:
> ;IF Keyword_Set(ps) THEN cgPS_Open, 'file.ps'
> cgPS_Open, 'file.ps'
> and
> ;IF Keyword_Set(ps) THEN cgPS_Close, /PNG
> cgPS_Close, /PNG
There is a PS keyword on the program. To make a PostScript file you type
this:
IDL> Example, /PS
Otherwise, the output goes to the display.
> An error then comes up that states "cgPS_Close: ImageMagick must be installed to complete raster operation". after clicking ok, it doesn't show the graph in the display, BUT the file.ps is created with the graph!
> However all the text is extremely small and of bad readable. So maybe something still isn't working as it should.
> Any ideas?
Well, I'm guessing a Mac. That causes many a problem with getting
ImageMagick installed properly. Here is an article that explains the
problem:
http://www.idlcoyote.com/cg_tips/findimonmac.php
I've no idea why the text is extremely small in the PostScript file.
But, I did notice in your original code that you had the font size so
large than it nearly took over the page when I ran your code. So maybe
something is radically different with our two machines with regard to
fonts. In any case, adjusting the font size in the program will help.
:-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
|