ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 26 Nov 2012 15:55:31 +0100how to calculate distance between origin and furthest point on graph?https://ask.sagemath.org/question/9567/how-to-calculate-distance-between-origin-and-furthest-point-on-graph/Hello!
I am new on this forum so forgive me if I don't respect all "rules" or if someone answered already this question.
![image description](http://oi45.tinypic.com/ve3i2e.jpg)
If you take a look at the image, I just want to know how to calculate the distance between origin and the furthest dot on the graph.
code:
var('t')
ff = (exp(cos(t)) - 2*cos(4*t) + sin(t/12)^5)
parametric_plot((ff*cos(t),ff*sin(t)), (t,0,2*pi) , fill=True, fillcolor='orange', figsize=[3,3])
mario_rujaMon, 26 Nov 2012 15:55:31 +0100https://ask.sagemath.org/question/9567/2 Plotting Questionshttps://ask.sagemath.org/question/7851/2-plotting-questions/I have been able to get most things working with:
list_plot([(r,Pabrf(Ratio=r).n()) for r in srange(-1, 1, 0.1, include_endpoint=True)], plotjoined=True, frame=true, ymin=0,axes_labels=('$\Omega _{0}/\omega _{nut}$',"$ P _{a\rightarrow b}$"),ticks=[[-1, -0.5,0,0.5,1],[0.2,0.4,0.6,0.8,1.0]])
I have an additional questions about controlling plot features:
1. How do I turn off or turn on the lines at the origin(0)? I can find nothing in the Matplotlib docs that mentions this.
2. How do I get the \rightarrow to display instead of the \Rightarrow? The \Rightarrow, \dashrightarrow and \longrightarrow display properly, I think this a bug.
Thank you again for your help.mhfreyFri, 07 Jan 2011 10:44:15 +0100https://ask.sagemath.org/question/7851/