[ncl-talk] boxplot second Y axis
Adam Phillips
asphilli at ucar.edu
Tue Nov 13 15:07:19 MST 2018
Hi Vanúcia,
Thank you for sending your data and an easy to run script so I could
quickly try things out. I've modified your script to perform a manual
overlay of the two boxplots on one another, as well as creating a new
boxplot function where the right hand Y-axis border and tick marks are
turned on. (I copied the boxplot function from shea_util.ncl, commented out
lines 106/108, and saved the function as boxplot2.)
I've attached a modified version of your script, the output graphic and the
slightly modified boxplot function. If you have any further questions let
ncl-talk know.
Adam
On Mon, Nov 12, 2018 at 5:05 PM Vanúcia Schumacher <
vanucia-schumacher at hotmail.com> wrote:
> Hi
>
> I'm trying to plot a boxplot with two Y axes, but I can not fix the right
> axis.
> Attached is my script and the data.
>
> The data has 36 rows and 14 columns, the one.txt data, I want to plot
> non-missing data with the same Y axis on the left side.
>
> The file data: two.txt, I wish to plot on the right Y axis, with the same
> X axis of the first file (one.txt).
>
> I do not know if it will be possible to create this plot, if anyone has
> any suggestions on how to proceed, I will be grateful.
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
--
Adam Phillips
Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181113/bb31fd45/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boxplot1_new.ncl
Type: text/x-ncl
Size: 2518 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181113/bb31fd45/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.png
Type: image/png
Size: 63476 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181113/bb31fd45/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: box_plot_function.ncl
Type: text/x-ncl
Size: 8498 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181113/bb31fd45/attachment-0001.bin>
More information about the ncl-talk
mailing list