Changes between Initial Version and Version 1 of Ticket #14580, comment 1


Ignore:
Timestamp:
05/20/13 11:47:25 (6 years ago)
Author:
ppurka
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14580, comment 1

    initial v1  
    11I added a new attribute `self._legend_colors = []` to `Graphics`. This will hold the colors or `None` in case no colors are provided. Patch needs review.
     2
     3''Edit'': It is now possible to get a graph [http://i.imgur.com/1hpaBbw.png like this]:
     4{{{
     5sage: p1 = plot(x, legend_label='this is x', legend_color='red', color='red')
     6sage: p2 = plot(x**2, legend_label='this is x^2', legend_color='green', color='green')
     7sage: (p1+p2).save('/tmp/a.png')
     8}}}