#4884: [with patch; positive review] Make colormap handling better
-------------------------+--------------------------------------------------
Reporter: abergeron | Owner: abergeron
Type: enhancement | Status: assigned
Priority: major | Milestone: sage-3.4
Component: graphics | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by was):
(I copied this from what I posted to #4878 to make sure viewers of this
ticket see it.)
> The thing about cmap options is that every time we update matplotlib
> new colormap names become available. The docstrings are just a fixed
> list and we do not update them every time we update matplotlib.
At a bare minimum, the docstring should explain precisely what one needs
to type to get a list of all valid colormaps. This could be included in a
docstring, so that when matplotlib changes the colormap options, the
docstring will suddenly break, and we will know to fix it.
Incidentally, right now one way to get a list of valid colormaps is to
just make a mistake with the cmap option, and a list of all valid options
is displayed.
{{{
sage: var('x,y')
sage: z = contour_plot(cos(x^2+y^2), (-4, 4), (-4, 4),cmap='foobar')
sage: z.save('a.png')
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4884#comment:5>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---