Can't show grid on subplotzero???

I was running this example, but would like to show the grid.
For some reason, the plt.grid(“on”) does not work. Any thoughts?

http://matplotlib.sourceforge.net/examples/axes_grid/simple_axisline2.html

Thanks,

Krishna ** ** Adrianto Pribadi****

Test Engineer

Desk (TTF): 256.480.4450

Cell: 412.401.1477

Harley-Davidson Motor Co.

Talladega Test Facility

Vehicle Test Stands (VTS)

This communication (including any attachments) is for the use of the intended recipient(s) only and may contain information that is confidential, privileged or otherwise legally protected. Any unauthorized use or dissemination of this communication is prohibited. If you have received this communication in error, please immediately notify the sender by return e-mail message and delete all copies of the original communication. Thank you for your cooperation

Hello all,

Does anyone know how to get the current
line cycle or color cycle for a particular line. I’m plotting a collection of
lines on 2 axes. After I finish plotting on the 1st axis, I then
want to plot on the 2nd axis and resume where the line color left
off in the 1st axis but so far I resets to the first line color in
the color cycle.

LMK if anyone knows how to set this. I’ve
been digging on the website but don’t have much luck.

Thanks,

Krishna ** ** Adrianto Pribadi****

Test Engineer

Desk (TTF): 256.480.4450

Cell: 412.401.1477

Harley-Davidson Motor Co.

Talladega Test Facility

Vehicle Test Stands (VTS)

This communication (including any attachments) is for the use of the intended recipient(s) only and may contain information that is confidential, privileged or otherwise legally protected. Any unauthorized use or dissemination of this communication is prohibited. If you have received this communication in error, please immediately notify the sender by return e-mail message and delete all copies of the original communication. Thank you for your cooperation

This communication (including any attachments) is for the use of the intended recipient(s) only and may contain information that is confidential, privileged or otherwise legally protected. Any unauthorized use or dissemination of this communication is prohibited. If you have received this communication in error, please immediately notify the sender by return e-mail message and delete all copies of the original communication. Thank you for your cooperation

This is a known bug that is fixed in svn (maybe in maint. release too).
The following link gives you a workaround.

Depending on your needs, it may better to use spines instead of
axes_grid toolkit.

http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html

Regards,

-JJ

···

On Wed, Mar 10, 2010 at 10:06 AM, Pribadi, Krishna <Krishna.Pribadi@...3019...> wrote:

I was running this example, but would like to show the grid. For some
reason, the plt.grid(“on”) does not work. Any thoughts?

http://matplotlib.sourceforge.net/examples/axes_grid/simple_axisline2.html

Thanks,

Krishna Adrianto Pribadi

Test Engineer

Desk (TTF): 256.480.4450

Cell: 412.401.1477

Harley-Davidson Motor Co.

Talladega Test Facility

Vehicle Test Stands (VTS)

This communication (including any attachments) is for the use of the
intended recipient(s) only and may contain information that is confidential,
privileged or otherwise legally protected. Any unauthorized use or
dissemination of this communication is prohibited. If you have received this
communication in error, please immediately notify the sender by return
e-mail message and delete all copies of the original communication. Thank
you for your cooperation

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Try

ax1 = subplot(121)
ax2 = subplot(122)

ax2._get_lines.color_cycle = ax1._get_lines.color_cycle

ax1.plot([0,1])
ax2.plot([0,1])

Regards,

-JJ

···

On Thu, Mar 11, 2010 at 9:02 AM, Pribadi, Krishna <Krishna.Pribadi@...3019...> wrote:

Hello all,

Does anyone know how to get the current line cycle or color cycle for a
particular line. I’m plotting a collection of lines on 2 axes. After I
finish plotting on the 1st axis, I then want to plot on the 2nd axis and
resume where the line color left off in the 1st axis but so far I resets to
the first line color in the color cycle.

LMK if anyone knows how to set this. I’ve been digging on the website but
don’t have much luck.

Thanks,

Krishna Adrianto Pribadi

Test Engineer

Desk (TTF): 256.480.4450

Cell: 412.401.1477

Harley-Davidson Motor Co.

Talladega Test Facility

Vehicle Test Stands (VTS)

This communication (including any attachments) is for the use of the
intended recipient(s) only and may contain information that is confidential,
privileged or otherwise legally protected. Any unauthorized use or
dissemination of this communication is prohibited. If you have received this
communication in error, please immediately notify the sender by return
e-mail message and delete all copies of the original communication. Thank
you for your cooperation

This communication (including any attachments) is for the use of the
intended recipient(s) only and may contain information that is confidential,
privileged or otherwise legally protected. Any unauthorized use or
dissemination of this communication is prohibited. If you have received this
communication in error, please immediately notify the sender by return
e-mail message and delete all copies of the original communication. Thank
you for your cooperation

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options