From: Alan W. I. <Ala...@gm...> - 2022-01-18 04:45:21
|
On 2022-01-18 12:19+0900 koi...@ya... wrote: [...] > There is one option I wish I could have in plplot: making a linebreak to put labels in between. > > To be precise, there may be two options. One is, make a line, put a white box on the line, then put numbers in. > > The other option is, literally break a line (draw two lines with some space) and put numbers in between. > > (Both look good to me). > > > > > Hopefully anyone can spare some time to consider adding it or tell me how ? Hi Shozee: I am answering you on the assumption your subject line should have been "line break for PLplot" since you did not mention plcont anywhere inside your email. If that assumption is correct I suggest you take a look at pllegend which was designed to give users tremendous control over how text (and graphics) are arranged within a legend (within a plot). Of course, that enormous capability makes its API complex, but check the [documentation of that API](http://plplot.org/docbook-manual/plplot-html-5.15.0/pllegend.html) to see whether that API might provide exactly what you need. That API is demonstrated in a simplistic way in [example 4](http://plplot.org/examples.php?demo=04) and [example 26](http://plplot.org/examples.php?demo=26) which are useful to show how to turn everything off other than the small subset of that API that you need. That API is demonstrated in a more comprehensive way in [example 33](http://plplot.org/examples.php?demo=33). Good luck and let us know how it goes! Alan __________________________ Alan W. Irwin Research affiliation with the Department of Physics and Astronomy, University of Victoria, Victoria, BC, Canada. Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |