#13834: Clean up linestyle arguments throughout Sage
--------------------------------+-------------------------------------------
Reporter: ppurka | Owner: jason, was
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-wishlist
Component: graphics | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Tobias Weich | Merged in:
Dependencies: | Stopgaps:
--------------------------------+-------------------------------------------
Comment (by ppurka):
Replying to [comment:9 twch]:
> I did the following in order to test the patches:
>
> {{{
> $ ./sage --testall --long
> all tests passed
> }}}
>
> {{{
> /sage -docbuild reference html
> }}}
> Built without errors or warnings
Thanks for checking this. The patchbot is down, otherwise it would have
checked for all of it.
> The only thing which seems to be a little bit unlogical for me is:
>
> {{{
> 301 Linestyles with ``"default"`` or ``"steps"`` in them
should also be
> 302 properly handled. For instance, matplotlib
understands only the short
> 303 version when ``"steps"`` is used::
> 304
> 305 sage: get_matplotlib_linestyle("default", "short")
> 306 ''
> 307 sage: get_matplotlib_linestyle("steps--", "short")
> 308 'steps--'
> 309 sage: get_matplotlib_linestyle("steps-predashed",
"long")
> 310 'steps-pre--'
> }}}
>
> Wouldn't the following be more reasonable: If matplotlib in some
functions only understand linestyles "stepsdashed" the function
get_matplotlib_linestyle should be called with the "short" keyword (as you
do it in lines.py) but the keyword shouldn't be ignored in the function
itself. But I don't see that this makes any problems so its just a
question.
Since `get_matplotlib_linestyle` is an internal function I just made it
silently output the correct result even on incorrect input. maptlotlib
understands only the short form in those cases and so I think it is safe
to output the short form always when we know that there is no alternative.
> I also tried to play with the enhanced functions and encountered no
further problems.
Thanks for checking them. I had checked some but not all.
> In any case: Since I'm inexperienced someone more experienced should
have a final look in order to confirm the patches.
Well, let's hope someone comes along and gives the patches a test drive.
:)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13834#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.