[ncl-talk] Trying to make the width of bars equal in all plots in a panel

Mary Haley haley at ucar.edu
Wed Jun 15 16:08:59 MDT 2016


You need to figure out which plot has the most number of bars, because it
will have the smallest bar width. You then need to set the bar chart width
of the other plots to whatever percentage it would take to make their bars
the same width.

See the attached sample script which uses dummy data.

--Mary

On Tue, Jun 14, 2016 at 4:05 PM, Soumik Basu <sbasu at alaska.edu> wrote:

> Hi,
>
> I have plotted a bar chart plot. Can anybody please help me to make the
> width of the bars equal?
>
> Also, I am getting some weird star marks in the x-axis. Can you please
> tell me how to get rid of those?
>
> Each plot in the panel are drawn with a different no. of bins and range of
> the x-axis is different for each plot. I tried to use
> "gsnXYBarChartBarWidth" function but I am still having different widths of
> the bars in each plot. I am attaching the figure and the code.
>
> Thanks,
> Soumik
> --
> --
> "Learn from yesterday, live for today, hope for tomorrow. The important
> thing is not to stop questioning." - Albert Einstein
>
>
> **************************************************************************************************
> Dr. Soumik Basu
> Post Doctoral Fellow, International Arctic Research Center, UAF,
> Fairbanks, AK, USA
> Nanjing University of Information Science and Technology, Nanjing, China
> PhD in Atmospheric Sciences
> M.Sc. in Atmospheric Sciences
> Email: suvro05 at gmail.com
> website: http://soumikbasu.weebly.com/
>
>
> ***************************************************************************************************
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160615/80348c8a/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bar_panel.ncl
Type: application/octet-stream
Size: 1471 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160615/80348c8a/attachment.obj 


More information about the ncl-talk mailing list