Hi Alan:
Thank you for sharing your code !

I have been trying to integrate this in to my current python program
without luck, as it's already pretty complex, so what I am doing now
My program creates custom "subplot" objects and passes them through a
"pipe" that first generates the window, then organizes the plots and
finally draws them
One of the critical parts of the procedure is using plenv, which uses
itself pladv and sets a basic viewport, as per the plplot documentation
As it's hard to implement this without an example, I am trying to implement
your solution on a regular plplot example first, but:

I have some difficulty understanding your code, so I would really
appreciate if you can clear some doubts:


   - # Sets up a viewport such that xnum X ynum of them fit onto a # page.
      - I assume this sets the amount of plots that will fit in to a page X
      / Y distributed ?
   - Make the active viewport the one at column currentx and row #
   currenty, starting at the top left.
      - This sets where plots will start being drawn, starting at the top
      left ?
   - The "space" parameters (top, # right, bot, and left) specify how much
   space is to be left open at # the relevant side for annotations etc.
      - This is clear


I believe it would also be great if you could share a full example with
this implementation, if possible.

Thank you so much !

Xavier





On Sat, Feb 8, 2020 at 8:05 PM Alan W. Irwin <alan.w.irwin1...@gmail.com>
wrote:

> On 2020-02-07 13:14+0100 Xavier Cardil wrote:
>
> > I was wondering how could I remove the white space between plots when
> using
> > a grid-like subplot configuration. When I stack plots vertically, there
> is
> > a small margin that is negligible for our use, but not when on a grid
> > scenario ( see picture )
> >
> > [image: plplot.png]
> >
> > If you guys could give me a fast tip on how to control the margins
> between
> > plots, or just to remove them completely I'd appreciate it
>
> Hi Xavier:
>
> It is interesting you brought up this topic since I have recently
> encountered it myself.  Some of my older research plots used the
> "yplot" wrapper for PLplot which dealt with this issue by defining the
> "plstick" functionality, but yplot is moribund so when recently
> attempting to replicate those old research plots I copied the
> essentials of plstick to Python so I could use plstick from that
> language.  I attach a figure showing the type of results you can get
> with this Python version of plstick, and if you like those I suggest
> you port the Python version of plstick (which I have also attached) to
> whatever language you like to use to generate your plots.
>
> Alan
> __________________________
> Alan W. Irwin
>
> 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
> __________________________
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to