Category plot. Stroke color for error bars
sjr51
Mon, 01/21/2013 - 11:40 pm
When I make a category plot I colour the bars differently according to condition etc., but I would like to have the outline (stroke) of the bar AND the error bar to be black. As I see it there is no possibility to do this. The error bar stays the colour of the bar. My current workaround is to plot a second category plot on top of the original with black but empty bars. Is there a simpler way?
Thanks for any help.
Again with Category Plots, some more flexibility is required with legend control. If you make a Category Plot with the bar colour set by a colour wave and then try to create a legend, the colour of the symbol marker (eg could be a pattern) is seemingly not controllable.
Help anyone?
Thanks
January 31, 2013 at 06:24 pm - Permalink
I think that the problem you're describing can be overcome by specifying the point of the wave that you want to appear in the legend. For a category plot where the colour is specified by a colour wave f(z), in the command line type:
Hope this helps.
January 31, 2013 at 10:56 pm - Permalink
display data vs textw (you get a contour plot)
appendtograph/NCAT data vs textw (appends some ugly curve to the plot)
change ugly curve to "sticks to zero", match fill color to contour plot color. add error bars, change color of ugly-curve data to desired error-bar color. offset ugly-curve by x=0.5.
done.
June 12, 2013 at 06:53 am - Permalink
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
June 12, 2013 at 11:05 am - Permalink
June 19, 2013 at 11:47 pm - Permalink
1) Make your basic category plot.
2) Append the same data again, as a category plot.
3) Use Graph->Reorder Traces to arrange so that the pair of traces for a given data set are next to each other in the list of traces.
4) Style the first instance of each data set the way you want it.
So far, you have two bars for each category.
5) Set the mode for the second instance of each data set to dots. Set the line size (which is also dot size) to zero. Set the color to black.
6) Set the error bars on the *second* instance of each data set.
7) Set the grouping mode of the *first* instance of each trace to "Keep with next". This is the step that will make the error bars stay on top of the category bars.
Now you should have category bars with black error bars on top of the category bars. Having the error bars attached to the second instance of each data set is what puts them on top. The grouping mode of the first instance is what makes the error bars appear on top of the category bars.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
June 20, 2013 at 01:16 pm - Permalink