[ncl-talk] Shorter dashes on error bar lines in scaled-down boxplot?
Tabish Ansari
tabishumaransari at gmail.com
Thu Jul 11 07:46:37 MDT 2019
Hi Adam,
Thanks a lot - that works.
Cheers,
Tabish
Tabish U Ansari
PhD student, Lancaster Environment Center
Lancaster Univeristy
Bailrigg, Lancaster,
LA1 4YW, United Kingdom
On Wed, 10 Jul 2019 at 22:46, Adam Phillips <asphilli at ucar.edu> wrote:
> Hi Tabish,
> Unfortunately it is not as easy as it should be. To alter the dash pattern
> you will have to take the boxplot function tfrom shea_util.ncl:
> $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
> Copy the boxplot function to a new file, change the file name to
> boxplot2.ncl, change the function name to boxplot2, and load the new
> boxplot2.ncl at the top of your script.
>
> Within the new boxplot2.ncl function, you will see lines like this:
> polyres at gsLineDashPattern = 0
> ...
> polyres at gsLineDashPattern = 1
>
> You are going to want to change the latter to a different tick mark style
> from this table:
> https://www.ncl.ucar.edu/Document/Graphics/Images/dashpatterns.png
>
> Alternatively you can create your own dash pattern using NhlNewDashPattern:
> http://www.ncl.ucar.edu/Document/Functions/Built-in/NhlNewDashPattern.shtml
>
> Hope that helps!
> Adam
>
>
>
> On Wed, Jul 10, 2019 at 12:51 PM Tabish Ansari via ncl-talk <
> ncl-talk at ucar.edu> wrote:
>
>> Hi
>>
>> I have a boxplot panelled with a time-series plot. For better fit, I had
>> to scale it down to match the height of the time-series panel. Every part
>> of the boxplot has scaled down nicely but the spacing between error bars is
>> still according to the original size figure - which makes the dashes too
>> big for the scaled down plot.
>>
>> Is there a way I can use shorter dashes for the error bars?
>>
>> Thanks
>>
>> Tabish
>>
>> Tabish U Ansari
>> PhD student, Lancaster Environment Center
>> Lancaster Univeristy
>> Bailrigg, Lancaster,
>> LA1 4YW, United Kingdom
>> _______________________________________________
>> 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/20190711/5a72d7f3/attachment.html>
More information about the ncl-talk
mailing list