Suche speziellen Funktionsplotter

Neue Frage »

Simeon Auf diesen Beitrag antworten »
Suche speziellen Funktionsplotter
Hi Leute,
kennt einer von euch einen Freeware Funktionsplotter, der Funktionen durch eine Reihe von Punkten zeichnen kann (aber sauber, nicht einfach alle Punkte linear verbinden)? Das Problem dabei ist jedoch, dass die Punkte per Mausklicks eingefügt werden sollen und nicht per Punktetabelle.
Habe bisher nur welche gefunden, bei denen es nicht möglich war die Punkte auch per Maus einzufügen.


mfg
Simeon
nschlange Auf diesen Beitrag antworten »

Hallo,

nicht genau das, was Du suchst, aber vielleicht gehts ja über
diesen Umweg:
Guck Dir g3data an,
http://www.frantz.fi/software/g3data.php
damit kann man Daten aus Graphen die als Bild vorliegen
holen.
Nimm halt eine leeres Koordinatensystem, klick Punkte
zusammen und fitte ein Funktion mit Gnuplot an die
Punkte.

Viele Grüße
nschlange
Simeon Auf diesen Beitrag antworten »

Danke für den Trick. Kann Gnuplot denn auch Grafen in 300 oder mehr dpi plotten? Brauch den Graf nämlich für einen Druck und der soll nicht pixelig aussehen.
sqrt(2) Auf diesen Beitrag antworten »

Gnuplot kann Postscript, PDF, SVG und noch einiges mehr ausgeben.
Simeon Auf diesen Beitrag antworten »

So, g3data hat mir jemand für mein Linux portiert und ich hab meine Punkte alle eingeclickt etc, aber wenn ich diese .dat datei speicher und mit gnuplot laden will, gibt er mir einen Error verwirrt

Edit: Ne doch geht, aber wie genau ich nun die Funktion dadurch fitte ist mir noch net ganz klar.
sqrt(2) Auf diesen Beitrag antworten »

Zitat:
Original von Simeon
So, g3data hat mir jemand für mein Linux portiert

Portiert? verwirrt Das läuft nativ auf Linux.

Zitat:
Original von Simeon
und ich hab meine Punkte alle eingeclickt etc, aber wenn ich diese .dat datei speicher und mit gnuplot laden will, gibt er mir einen Error verwirrt

Als Linuxnutzer solltest du eigentlich wissen, dass unsere Glaskugeln leider permanent kaputt sind. Wer ist er? Was ist die Fehlermeldung?
 
 
Simeon Auf diesen Beitrag antworten »

Aber es ist nicht bei meiner Paketauswahl dabei gewesen, deshalb musste mir das jemand zusammen bauen. Bin nämlich KEIN Linux User deshalb stell ich mich da n bisserl blöd an, hab load anstatt plot benutzt daher der Fehler s.o. Aber jetzt hab ich auch nur Punkte, und keine Funktion die dadurch geht geplottet traurig
sqrt(2) Auf diesen Beitrag antworten »

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
gnuplot> help fit
 The `fit` command can fit a user-defined function to a set of data points
 (x,y) or (x,y,z), using an implementation of the nonlinear least-squares
 (NLLS) Marquardt-Levenberg algorithm.  Any user-defined variable occurring in
 the function body may serve as a fit parameter, but the return type of the
 function must be real.

 Syntax:
       fit {[xrange] {[yrange]}} <function> '<datafile>'
           {datafile-modifiers}
           via '<parameter file>' | <var1>{,<var2>,...}

 Ranges may be specified to temporarily limit the data which is to be fitted;
 any out-of-range data points are ignored. The syntax is
       [{dummy_variable=}{<min>}{:<max>}],
 analogous to `plot`; see `plot ranges`.

 <function> is any valid `gnuplot` expression, although it is usual to use a
 previously user-defined function of the form f(x) or f(x,y).

 <datafile> is treated as in the `plot` command.  All the `plot datafile`
 modifiers (`using`, `every`,...) except `smooth` and the deprecated `thru`
 are applicable to `fit`. See `plot datafile`.
Press return for more: 

 The default data formats for fitting functions with a single independent
 variable, y=f(x), are {x:}y or x:y:s; those formats can be changed with
 the datafile `using` qualifier.  The third item (a column number or an
 expression), if present, is interpreted as the standard deviation of the
 corresponding y value and is used to compute a weight for the datum, 1/s**2.
 Otherwise, all data points are weighted equally, with a weight of one.
 Note that if you don't specify a `using` option at all, no y deviations are
 read from the datafile even if it does have a third column, so you'll
 always get unit weights.

 To fit a function with two independent variables, z=f(x,y), the required
 format is `using` with four items, x:y:z:s.  The complete format must be
 given---no default columns are assumed for a missing token.  Weights for
 each data point are evaluated from 's' as above.  If error estimates are
 not available, a constant value can be specified as a constant expression
 (see `plot datafile using`), e.g., `using 1:2:3:(1)`.

 Multiple datasets may be simultaneously fit with functions of one
 independent variable by making y a 'pseudo-variable', e.g., the dataline
 number, and fitting as two independent variables.  See `fit multi-branch`.

Press return for more: 
 The `via` qualifier specifies which parameters are to be adjusted, either
 directly, or by referencing a parameter file.

 Examples:
       f(x) = a*x**2 + b*x + c
       g(x,y) = a*x**2 + b*y**2 + c*x*y
       FIT_LIMIT = 1e-6
       fit f(x) 'measured.dat' via 'start.par'
       fit f(x) 'measured.dat' using 3:($7-5) via 'start.par'
       fit f(x) './data/trash.dat' using 1:2:3 via a, b, c
       fit g(x,y) 'surface.dat' using 1:2:3:(1) via a, b, c

 After each iteration step, detailed information about the current state
 of the fit is written to the display.  The same information about the
 initial and final states is written to a log file, "fit.log".  This file
 is always appended to, so as to not lose any previous fit history;  it
 should be deleted or renamed as desired. By using the command 
 `set fit logfile`, the name of the log file can be changed.

 If gnuplot was built with this option, and you activated it using `set fit
 errorvariables`, the error for each fitted parameter will be stored in
 a variable named like the parameter, but with "_err" appended.  Thus the
Press return for more: 
 errors can be used as input for further computations.

 The fit may be interrupted by pressing Ctrl-C (any key but Ctrl-C under
 MSDOS and Atari Multitasking Systems).  After the current iteration
 completes, you have the option to (1) stop the fit and accept the current
 parameter values, (2) continue the fit, (3) execute a `gnuplot` command
 as specified by the environment variable FIT_SCRIPT.  The default for
 FIT_SCRIPT is `replot`, so if you had previously plotted both the data
 and the fitting function in one graph, you can display the current state
 of the fit.

 Once `fit` has finished, the `update` command may be used to store final
 values in a file for subsequent use as a parameter file.   See `update`
 for details.

Subtopics available for fit:
    adjustable_parameters               beginners_guide   control
    error             error_estimates   errors            guide
    multi-branch      parameters        starting_values   tips

Subtopic of fit: 


Und so weiter.
Simeon Auf diesen Beitrag antworten »

Danke für deine Hilfe.
Hab in der Hilfe smooth csplines gefunden, damit gehts besser, aber ein Prob hab ich nocht, wie krieg ich die Linie dicker und wie die Ausgabe als pdf? Die beiden Sachen find ich in der Hilfe nicht.
sqrt(2) Auf diesen Beitrag antworten »

Wenn du deinen so hast, wie du ihn möchstest, gibst du noch

code:
1:
2:
set term pdf
save 'test.gnuplot'

ein.

Dann rufst du gnuplot von der Kommandozeile wie folgt auf:

code:
1:
gnuplot test.gnuplot > output.pdf

Was die Linienbreite angeht, lies dir mal "help plot style" durch.
Simeon1 Auf diesen Beitrag antworten »

pdf geht nicht, weils das nicht gibt bei mir.
Ich hab dann set term png gemacht, aber wenn ich dann "gnuplot 'blub.gnuplot' > test.png" eingebe entsteht da nur eine leere png file.
sqrt(2) Auf diesen Beitrag antworten »

Zitat:
Original von Simeon1
pdf geht nicht, weils das nicht gibt bei mir.

Dann sieh zu, dass du ein gnuplot bekommst, wo alles mit einkompiliert ist.
Neue Frage »
Antworten »



Verwandte Themen

Die Beliebtesten »
Die Größten »
Die Neuesten »