|
From: John H. <jdh...@ac...> - 2004-07-26 21:31:06
|
>>>>> "Mark" == Mark Engelhardt <ma...@st...> writes:
Mark> Hi, Two quick little issues I haven't been able to figure
Mark> out how to fix on my own so far:
Mark> 1. Is there an easy way to change the spacing between
Mark> subplots, so that they aren't so crammed together? It's
Mark> none too pretty when the x-axis text for the upper plot is
Mark> overlapping or even below the title for the lower plot.
Which backend are you using? Chris Fuller submitted a tk widget for
just this purpose -
http://sourceforge.net/mailarchive/message.php?msg_id=8901913. It
would be fairly easy to port to other GUIs. It's on the list of things
to do, but I haven't had time. Other than that, your best option is
to manually set the axes size, eg using the 'axes' command or calling
ax.set_position
Mark> 2. Is there a way to make the 'show()' command execute so
Mark> that the script keeps running (instead of waiting for the
Mark> windows to be closed), and to have the output persist past
Mark> the end of the run?
You should only call show once per script. I repeat, you should only
call show once per script -
http://matplotlib.sourceforge.net/faq.html#SHOW
matplotlib-0.60.2 has a "draw" command to force a canvas redraw. This
is non blocking. Earlier versions allow you to do, equivalently,
get_current_fig_manager().canvas.draw(). Does this do what you want?
I am not sure what you are after when you write "have the output
persist past the end of the run". Launch the python interpreter?
Please let me know what backend you are using and explain a bit more
what it is you are trying to do. Are you running in interactive mode?
JDH
|