|
From: Hazen B. <hba...@ma...> - 2016-04-04 18:26:36
|
> > Hi All - > > This is the first day I have being using PLplot, and my first post to this list, so please be gentle... > > I'm a long-time pgplot user (from C). I've been using Python for some time, but not really doing any complicated graphics, so I just used matplotlib. Now I want to do something more advanced, I have decided I hate matplotlib. Rather than use the python bindings to pgplot, I thought I would give PLplot a whirl. So far, I have been really impressed, and have gone a long way, using my pgplot knowledge, and looking for similarities in PLplot. > > But, I am having what is probably a simple error on my part. I want to create a number of sub-pages, and then draw in each of them in semi-random order. It seems I should be able to do that by calling pladv(n), where n is the sub-page number. However, I only seem to be able to advance forwards, not backwards (for both e.g. xwin and ps). To try and isolate what is happening, I wrote a trivial Python routine, attached. It will advance forward, but my attempts to advance backwards produce no error messages, but also no output. Maybe I have a missing call to some other routine, or something? Apologies for the extreme delay in responding. The documentation does imply that pladv() should do this. However the only way that I can get it to (sort of) work is to call pladv() to go to the requested sub-page, then call plenv0(). However this also clears the plot so you would have to replay everything that you previously drew. What is your goal? Do you want N plots on a single page that are updating in real time? best, -Hazen |