Hello. Was trying to create a simple plotting function. Wasnt working
however. If i write the same code without putting it inside a function
it works. :S. Could some1 tell me the problem? Heres the code:
# File name Plotting2
import Gnuplot
def plot(original, expected, actual):
if type (o
Hello. Needed some help again. Im trying to calculate the best fit
line here. Given a set of points in a list. However, wirte in the end
where i plot the line it tells me tht the variable is not defined.
Either try correcting this or tell me a subsitute that i could use.
Thnks. Heres the code:
#F
No help yet?
--
http://mail.python.org/mailman/listinfo/python-list
Hello. Ive got two functions here. Somehow the program does not go in
to the second function wehn i call it. The bestfit function. Could
some1 help me identify the problem. Heres the code:
import Gnuplot
def bestfit(uinput):
if not isinstance(uinput, list):
return False
else:
While using gnuplot.py if id want to make a straight line supposingly
y = 3 after the point (2,3) (a point on another line) with the same
color as that of the line how wud i do that?
--
http://mail.python.org/mailman/listinfo/python-list
Is there anyway one could find ot the point of intersection between
any two plotted functions and also display them using gnuplot.py??
--
http://mail.python.org/mailman/listinfo/python-list
Umm Tried this out too Laiken heres the error that this
gives..
Traceback (most recent call last):
File "D:\Questions\Gradient and C\Gnuplot\Combining Best fit and
Plotting\combasd.py", line 3, in
combine.show_plots([(2,3), (4,8), (5,9), (6,2)], [(1,7), (3,3),
(4,5), (5,6)], [(1,3),
On Jun 13, 12:13 pm, Peter Otten <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Umm Tried this out too Laiken heres the error that this
> > gives..
>
> > Traceback (most recent call last):
> > File "D:\Questions\Gradient and C\Gnuplot\Combining Best fit and
> > Plotting\combasd
Got the problem solved finally. Missed out theses two lines:
plot1 = Gnuplot.PlotItems.Data(original, title="Original")
plot2 = Gnuplot.PlotItems.Data(expected, title="Expected")
plot3 = Gnuplot.PlotItems.Data(actual, title="Acutal")
plot4 = Gnuplot.PlotItems.Func('%f * x+%f'%(bf1[
How would u extrapolate/ extend a given line in gnu plot?
--
http://mail.python.org/mailman/listinfo/python-list
Hello. New to using Python. Python automatically round off watver i
calculate using the floor function. How wud i make the exact value
appear?
Tried out fabs() in the math library but still confused. Cud some1
elaborate on it.
--
http://mail.python.org/mailman/listinfo/python-list
Hello, Could some1 tell me how u could change the colours of the
different lines that you have plotted while using gnuplot.py. Also how
to change the background colour, line thickness etc.
Thnx
--
http://mail.python.org/mailman/listinfo/python-list
Hello. Could some1 tell me how i could "display" a specific point in
gnuplot.py. Supposingly if i have a point of intersection (2,3). How
can i show this on the graph? As in how can i write near the point of
intersection the value :(2,3).
Thnx
--
http://mail.python.org/mailman/listinfo/python-list
13 matches
Mail list logo