#7798: Text in Plots at any given Function
------------------------+---------------------------------------------------
   Reporter:  slosoi    |       Owner:  was         
       Type:  defect    |      Status:  needs_work  
   Priority:  minor     |   Milestone:  sage-feature
  Component:  graphics  |    Keywords:  plot, label 
Work_issues:            |      Author:  Sami Losoi  
   Upstream:  N/A       |    Reviewer:              
     Merged:            |  
------------------------+---------------------------------------------------
Description changed by slosoi:

Old description:

> The purpose of the ticket is be able to recompute plots in order to have
> labels at given functions. You need to locate where the function text
> should be applied to the function plot to be able to have labels for
> plots like:
>
>    var('x');
>    x_cord = xmin;
>    f = x**2;
>    p = plot(f,x)+text(f,(x_cord,f(x_cord))
>
> for one function.
>
> Similarly for two functions (syntax may change):
>
>    g = x;
>    f = x**2;
>    p = plot(f,x);
>    x_cord = xmin;
>    (g + f) + text(f, (f,x_cord), g, (g,x_cord))
>
> where the string prints the label for g, while "g" prints label only for
> f.
>
> --
>
> The ticket [http://trac.sagemath.org/sage_trac/ticket/4342] seems to
> consider the same problem but from the different perspective to solve it.
>
> --
>
> Milestone
>
> 1. to recompute the plot such that we can change ranges for plots

New description:

 The purpose of the ticket is be able to recompute plots in order to have
 labels at given functions. You need to locate where the function text
 should be applied to the function plot to be able to have labels for plots
 like:


 {{{
    var('x');
    x_cord = xmin;
    f = x**2;
    p = plot(f,x)+text(f,(x_cord,f(x_cord))
 }}}


 for one function.

 Similarly for two functions (syntax may change):


 {{{
 g = x;
    f = x**2;
    p = plot(f,x);
    x_cord = xmin;
    (g + f) + text(f, (f,x_cord), g, (g,x_cord))
 }}}


 where the string prints the label for g, while "g" prints label only for
 f.

 --

 The ticket [http://trac.sagemath.org/sage_trac/ticket/4342] seems to
 consider the same problem but from the different perspective to solve it.

 --

 The recomputing would solve at least the following problem


 {{{

 # to increase the range of axis does not extend the plots
 # we need to recompute the plot to do that
 var('x')
 p = plot(x**,x)
 p.set_axes_range(-10,10,-10,10)

 }}}



 Milestone

 1. to recompute the plot such that we can change ranges for plots

--

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