On Thu, Nov 20, 2008 at 8:06 AM, Søren Nielsen
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a canvas with two subplot.. I want to be able to hide on of the
> subplots by pushing a button and letting the remaining subplot fill the
> entire canvas.
>
> If I use the set_visible(True) parameter I correctly remove one of the
> subplots.. but the remaining subplot does not fill the canvas.. Anyone have
> an idea of how to do this?

You should be able to use the "change_geometry" method on the remaining subplot

  ax2.set_visible(False)
  ax1.change_geometry(1,1,1)
  fig.canvas.draw()

JDH

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to