Dan Aldrich wrote:
> Is there a way to label x-axis  in terms of pi, say like pi/2, pi, 3pi/2?
> 

I don't think there is a nice, easy, builtin way.  Yet.

I see two elegant solutions (now talking with people who are or want to 
be familiar with the matplotlib code that goes on behind the scenes):

1. Make show also take in an x coordinate length, plus a formatting 
function.  Then use a MultipleLocator matplotlib locator and a formatter 
to get the axes ticks.

2. Make show take a matplotlib formatter and matplotlib locator.  Then a 
user could construct their own formatters/locators and pass them into 
show.  This is the most versatile, but may expose them to a lot of 
matplotlib in the process (which is not necessarily a bad thing).

See 
http://matplotlib.sourceforge.net/api/ticker_api.html#matplotlib.ticker.MultipleLocator

Thanks,

Jason


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to