Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warn not in misc #24303

Closed
videlec opened this issue Nov 30, 2017 · 2 comments
Closed

warn not in misc #24303

videlec opened this issue Nov 30, 2017 · 2 comments

Comments

@videlec
Copy link
Contributor

videlec commented Nov 30, 2017

sage: G = Graphics()
sage: G = line2d([(0,0), (1,1)])
sage: G.legend(True)
sage: G.show()
...
.../graphics.pyc in
   2661             leg = subplot.legend(prop=prop, **lopts)
   2662             if leg is None:
-> 2663                 sage.misc.misc.warn("legend requested but no items are labeled")
   2664             else:
   2665                 # color
AttributeError: 'module' object has no attribute 'warn'

This is the kind of things that should have been in a doctest!!

Component: graphics

Keywords: bug, thursdaysbdx

Reviewer: Markus Wageringel

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

@videlec videlec added this to the sage-8.2 milestone Nov 30, 2017
@mkoeppe
Copy link
Member

mkoeppe commented Jul 8, 2020

comment:1

Fixed in #29895

@mkoeppe mkoeppe removed this from the sage-8.2 milestone Jul 8, 2020
@mwageringel
Copy link

Reviewer: Markus Wageringel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants