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

Home » Public Forums » archive » Multiple labels in cgScatter2D?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Multiple labels in cgScatter2D? [message #92876 is a reply to message #88421] Wed, 16 March 2016 11:45 Go to previous messageGo to previous message
chengyuxi34 is currently offline  chengyuxi34
Messages: 4
Registered: January 2016
Junior Member
Hi, David

Thanks for earlier help and quick respond in general.

I run into the same problem. If I try to set xrange or yrange when using cgScatter2D.pro, there would be two labels in the output file

Example:
-------------
> pson,filename='temp.eps'
> cgscatter2d,findgen(30),findgen(30)+0.1,xrange=[-1.0,31]
> psoff
-----------
It also confused me that I was not able to use cgControl.pro to output a plot. When I used cgControl, it went through, but no file was ever generated.

Thanks,
Chengyu



On Wednesday, April 23, 2014 at 4:54:22 PM UTC-4, David Fanning wrote:
> Jonas Ardo writes:
>
>> I run
>>
>> pro NPPplot
>> compile_opt idl2
>>
>> NPP = READ_CSV('file.csv', HEADER=NPPheader)
>>
>> cgWindow, WXSize=600, WYSize=600
>>
>> cgScatter2D, NPP.FIELD2, NPP.FIELD3, /ISOTROPIC, /NODISPLAY, FIT=0,
>> XTitle= NPPheader[1], YTitle= NPPheader[2], XRange=[0,700],
>> YRange=[0,700], $
>> PSym=16, /Window, /Coefficient, Charsize=1.3, /GRID
>>
>> cgControl, Create_PNG='C:\idlfiles\GPP\NPP.png'
>>
>> END
>>
>> The plot created looks OK in th resizealble graphic window but have
>> multiple lables (i.e. 200, 400 etc are shown twice on the x-axis and
>> y-axis) in the PNG file and if I save a PDF from the resizealble
>> graphic window.
>>
>> Suggestions?
>
> I use these instructions to figure out problems like these:
>
> http://www.idlcoyote.com/code_tips/fixcoyoteprogram.php
>
> Specifically, when was the last time you updated your Coyote Library?
>
> 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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can I restore many files
Next Topic: INTERPOLATE function - points outside the range

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

Current Time: Wed Oct 08 13:52:52 PDT 2025

Total time taken to generate the page: 0.21140 seconds