Drawing the mean in cgboxplot [message #88343] |
Tue, 15 April 2014 20:59  |
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   |
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   |
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.")
|
|
|
|