Re: Regarding plotting stacked histograms with custom colors
Ethan Merritt <[email protected]> Wed, 17 May 2023 09:05:50 -0700
| Newsgroups | gmane.comp.graphics.gnuplot.user |
|---|---|
| Message-ID | <CAGRdh4tXjT2XtBHTrcymX5j3FgG1mqVD-LrQOC6_5G_z-W7PVA@mail.gmail.com> |
On Tue, May 16, 2023 at 9:52 PM Debostuti Ghoshdastidar < [email protected]> wrote: > Dear Users > > I have data in the following format > > X1 Y1 Z1 Y2 Z2...Yn Zn > X2 Y1 Z1 Y2 Z2...Yn Zn > . > . > . > Xn Y1 Z1 Y2 Z2...Yn Zn > > I would like to draw a rowstacked histogram (which I know how to) where the > colors for the bars are specified by the corresponding Z columns. For > example Y1 should be colored based on Z1 value, Y2 based on Z2 value, and > so on...mush like the use of cbrange. Could you suggest how I can > accomplish this? > set style data histogram set style histogram rows set style fill solid border lc "black" set cbrange [0:<something>] plot for [i=2:*:2] DATA using (column(i)):(column(i+1)) lc palette title "???" It is not clear to me how you would label or construct a legend describing this in a way that is easy for the viewer to understand. Perhaps superimpose a label on top of each individual box? Ethan > Thank you > > Debostuti > -- > Debostuti Ghosh Dastidar > Research Associate > PDB-India > > _______________________________________________ > gnuplot-info mailing list > [email protected] > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > _______________________________________________ gnuplot-info mailing list [email protected] Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info