Hi all-

I've been working on a plot that puts the bottom and right spines at zero
(adapting some code from the example at
http://matplotlib.org/examples/pylab_examples/spine_placement_demo.html) ,
and I've discovered that setting the position of the right spine to 'zero'
seems to locate it at x=1.

Is this a bug? Or is there something that I'm missing?

Thanks,
--Chad

P.S. Sorry if this is duplicated... it seems that my messages aren't
getting though to the list.

Here's an example that demonstrates the behavior:

import matplotlib.pyplot as plt

f=plt.figure(1)
ax=plt.subplot(111)
ax.spines['left'].set_color('none')
ax.spines['top'].set_color('none')
ax.spines['right'].set_position('zero')
ax.spines['bottom'].set_position('zero')
ax.xaxis.set_ticks_position('bottom')
ax.yaxis.set_ticks_position('right')
ax.set_xlim([-2,2])
ax.set_ylim([-2,2])

plt.show()
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to