Plotting on an "open box" with matplotlib?

Hello,

I've been using Gnuplot for years, but am quite impressed with what I see in matplotlib and am in the process of learning enough to switch. One item that I haven't been able to figure out yet is how to plot on an "open box".

For example, in Gnuplot I would give the commands
  set xtics nomirror
  set ytics nomirror
  set border 3
and I would get a plot that only had left and bottom axes instead of a complete box.

How do I get this "open box" plot with matplotlib?

Thanks in advance,
-ea
-- --- ----- ------- ----------- -------------
Dr. Eric Ayars
Associate Professor of Physics
California State University, Chico
ayars@...2737...

This is new in matplotlib 0.99 -- is this what you are looking for

http://matplotlib.sourceforge.net/users/whats_new.html#axis-spine-placement

JDH

···

On Thu, Aug 13, 2009 at 12:59 PM, Eric Ayars<Ayars@...2737...> wrote:

Hello,

I've been using Gnuplot for years, but am quite impressed with what I
see in matplotlib and am in the process of learning enough to switch.
One item that I haven't been able to figure out yet is how to plot on
an "open box".

For example, in Gnuplot I would give the commands
set xtics nomirror
set ytics nomirror
set border 3
and I would get a plot that only had left and bottom axes instead of a
complete box.

How do I get this "open box" plot with matplotlib?

Thank you! This is just what I was looking for.

I found an "undocumented feature", though: if you use spine.set_position(), the label on that spine goes away.

-ea

-- --- ----- ------- ----------- -------------
Dr. Eric Ayars
Associate Professor of Physics
California State University, Chico
ayars@...2737...

···

On Aug 19, 2009, at 12:08 PM, John Hunter wrote:

On Thu, Aug 13, 2009 at 12:59 PM, Eric Ayars<Ayars@...2737...> wrote:

Hello,

I've been using Gnuplot for years, but am quite impressed with what I
see in matplotlib and am in the process of learning enough to switch.
One item that I haven't been able to figure out yet is how to plot on
an "open box".

For example, in Gnuplot I would give the commands
       set xtics nomirror
       set ytics nomirror
       set border 3
and I would get a plot that only had left and bottom axes instead of a
complete box.

How do I get this "open box" plot with matplotlib?

This is new in matplotlib 0.99 -- is this what you are looking for

http://matplotlib.sourceforge.net/users/whats_new.html#axis-spine-placement

JDH