Skip to content

legends don't save correctly #10244

@sagetrac-mhampton

Description

@sagetrac-mhampton

The new plot legends look great, but generate an error when you try to save them.

For example:

a1 = plot(sin,-pi,pi,legend_label='sin')
a2 = plot(cos,-pi,pi,legend_label='cos',rgbcolor='red')
two_plots = a1+a2
two_plots.save('./two_plots.png')

gives the error:

KeyError: 'pop(): dictionary is empty'

Apply: attachment: trac_10244_legend_label_fix_v3.patch and attachment: trac_10244-reviewer.patch

CC: @kcrisman @jasongrout @novoselt

Component: graphics

Author: Marshall Hampton

Reviewer: Karl-Dieter Crisman

Merged: sage-4.6.2.alpha2

Issue created by migration from https://trac.sagemath.org/ticket/10244

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions