#4878: [with patch; needs review] Add a density_plot() function
-----------------------+----------------------------------------------------
 Reporter:  abergeron  |        Owner:  abergeron
     Type:  defect     |       Status:  assigned 
 Priority:  major      |    Milestone:  sage-3.4 
Component:  graphics   |   Resolution:           
 Keywords:             |  
-----------------------+----------------------------------------------------
Comment (by was):

 > 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')
 }}}
 verbose 0 (63: contour_plot.py, _render_on_subplot) The possible color
 maps include: Spectral, summer, pink_r, Set1, Set2, Set3, Dark2, prism,
 PuOr_r, PuBuGn_r, RdPu, gist_ncar_r, Dark2_r, YlGnBu, RdYlBu, hot_r,
 gist_rainbow_r, gist_stern, cool_r, cool, gray, copper_r, Greens_r, GnBu,
 gist_ncar, spring_r, gist_rainbow, gist_heat_r, summer_r, OrRd_r, bone,
 gist_stern_r, RdYlGn, Pastel2_r, spring, Accent, YlOrRd_r, Set2_r, PuBu,
 RdGy_r, spectral, flag_r, jet_r, RdPu_r, gist_yarg, BuGn, Paired_r, hsv_r,
 YlOrRd, Greens, PRGn, gist_heat, spectral_r, Paired, hsv, Oranges_r,
 prism_r, Pastel2, Pastel1_r, Pastel1, gray_r, PuRd_r, Spectral_r, BuPu,
 YlGnBu_r, copper, gist_earth_r, Set3_r, OrRd, PuBu_r, winter_r, RdBu, jet,
 bone_r, gist_earth, Oranges, RdYlGn_r, PiYG, YlGn, binary_r, gist_gray_r,
 gist_gray, flag, RdBu_r, BrBG, Reds, GnBu_r, BrBG_r, Reds_r, RdGy, PuRd,
 Accent_r, Blues, Greys, autumn, PRGn_r, Greys_r, pink, binary, winter,
 gist_yarg_r, RdYlBu_r, hot, YlOrBr, BuPu_r, Purples_r, PiYG_r, YlGn_r,
 Blues_r, YlOrBr_r, Purples, autumn_r, BuGn_r, Set1_r, PuOr, PuBuGn
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4878#comment:3>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to