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

Home » Public Forums » archive » Drawing the mean in cgboxplot
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
Drawing the mean in cgboxplot [message #88343] Tue, 15 April 2014 20:59 Go to next message
Marta Yebra is currently offline  Marta Yebra
Messages: 16
Registered: August 2012
Junior Member
HI,

I have modified CGboxplot to draw the mean in red including this:

PLOTS, [xlocation, xlocation], [stats.mean,stats.mean], COLOR=cgColor('red'),symsize=2 , thick=12

but I do not know how to make it look bigger!! it appears as a very little spot
I have tried sysize but it does not work

Thanks, Marta
Re: Drawing the mean in cgboxplot [message #88346 is a reply to message #88343] Wed, 16 April 2014 00:57 Go to previous messageGo to next message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den onsdagen den 16:e april 2014 kl. 05:59:03 UTC+2 skrev Marta Yebra:
> HI,
>
> I have modified CGboxplot to draw the mean in red including this:
>
> PLOTS, [xlocation, xlocation], [stats.mean,stats.mean], COLOR=cgColor('red'),symsize=2 , thick=12
>
> but I do not know how to make it look bigger!! it appears as a very little spot
>
> I have tried sysize but it does not work

You need to set the psym keyword to select a plotting symbol. Right now you are drawing a line from (xlocation,stats.mean) to (xlocation,stats.mean). A thick line, thanks to thick=12, but very short...
Re: Drawing the mean in cgboxplot [message #88353 is a reply to message #88343] Wed, 16 April 2014 05:50 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Marta Yebra writes:

> I have modified CGboxplot to draw the mean in red including this:
>
> PLOTS, [xlocation, xlocation], [stats.mean,stats.mean], COLOR=cgColor('red'),symsize=2 , thick=12
>
> but I do not know how to make it look bigger!! it appears as a very little spot
> I have tried sysize but it does not work

This code draws a point. If that is what you are trying to do, then I
would use the PSYM keyword to add a symbol to the point:

cgPlots, xlocation, stats.mean, PSYM=16, Color='red', Symsize=3

If you are trying to draw a line, then you will have to make the line a
bit longer than a single point to see it well:

cgPlots, [xlocation, xlocation], [0,stats.mean], COLOR='red'

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.")
Re: Drawing the mean in cgboxplot [message #88364 is a reply to message #88343] Wed, 16 April 2014 15:25 Go to previous message
Marta Yebra is currently offline  Marta Yebra
Messages: 16
Registered: August 2012
Junior Member
of course! thanks! I do not know what I was thinking about yesterday :)
Easy solution!! Thanks again.
Marta
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: SVDC procedure
Next Topic: DLM "unload"?

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

Current Time: Wed Oct 08 15:07:45 PDT 2025

Total time taken to generate the page: 0.00416 seconds