How can I limit maximum value plotted with cgPlotS? [message #79543] |
Mon, 05 March 2012 19:50 |
BLesht
Messages: 89 Registered: March 2007
|
Member |
|
|
I'm having a lot of fun with cgPlotS from David's Coyote graphics
library. Its very helpful to be able to assign colors to symbols
using data values, etc. However, I have had cases when, after setting
up a plot framework using the "cgPlot, XRANGE=[minx, maxx],
YRANGE=[miny, maxy], /NODATA" construct, some of the data values that
are plotted by subsequent calls to cgPlotS are larger than maxy and
still show up on the graph but above the axis limit. This is the kind
of thing that the traditional MAX_VALUE parameter is supposed to
address, but MAX_VALUE can't be passed to cgPlotS because its built
around PLOTS. I suppose I could test the data array before plotting
it and just not pass the offending values, but I was wondering if
there is some better way to address this problem. Thanks.
|
|
|