![]() Hist(x) = width * floor(x / width) + width / 2.Graphs typically have a high information density. Min = 0.0+floor(mu-3*sigma) # plot range min ![]() Max = 0.0+ceil(mu+3*sigma) # plot range max Sigma = STATS_stddev_y # standard deviation Stddev_y = sqrt(FIT_WSSR / (FIT_NDF + 1 )) # Retrieve statistical properties via dummy plot In GP Ver 4.2 (and above) these tricks, stolen from are handy STATS_pos_max_y # x coordinate of a point with maximum y value STATS_pos_min_y # x coordinate of a point with minimum y value STATS_max # maximum value of in-range data points STATS_min # minimum value of in-range data points STATS_records # total number of in-range data records In GP Ver>4.6 the new function stats is quite convenient. Print A(aa), B(bb), C(cc) # do NOT use aa, bb, cc as they are not what you want!!! Restricting fit parameters f(x) = a *exp(-(x-b )*(x-b )/c /c ) , (x=fitHigh)?1/0:f(x) notitle with lines \Īdvanced Fitting FIT_LIMIT = 1e-8 # or even smaller "data.dat" title "5V" with points pointsize 0.2\ # to weight the data (here by y^(-2)) use sth like the following: Plot "data.dat" title "data" notitle, f(x) title "fit" Set style line 2 linewidth 2 pointsize 2 linetype 7 Set style line 1 linewidth 2 pointsize 2 linecolor rgb "blue" Modify Default Line Types/Styles set style increment user # important!!! switch between linetypes (default) and userdefined linestyles Analogously for other letters, changing the "a" by other, like "D" for Delta and so on. ![]() Then, to add the alpha greek letter, you have to type. To get a greek letter, you have to use the postscript terminal, with the option enhanced. Set term postscript fontfile '/MessSoftware/sfrm1000.pfb' "SFRM1000" Set term postscript fontfile '/usr/share/texmf/fonts/type1/public/cm-super/sfrm1000.pfb' "SFRM1000" For exampleįrom, needs Linux package "cm-super") Than you can use all the fonts in that dir. Set lmargin at screen 0.1 # useful for multiplotsĮxport GDFONTPATH=/usr/share/fonts/truetype/msttcorefonts Set object 1 circle at xwert, ywert behindĪxis label closer to tics (unit = characters, other units possible as well) Set arrow nohead from graph 0, first 0 to graph 1, first 0ĭraw circle, rectangle, ellipse, or polygon Note: set arrow must be placed before the plot command Set arrow from fitLow, graph 0 to fitLow, graph 1 nohead lc -1 lw 2 Set color of axes label or tics to that of line XYZĭraw Line/Arrow set arrow nohead from 0,0 rto 10,1 Set label "text" at graph 0.25, graph 0.75 # position can be given via differnet systems: first (=x axes), second (=x2 axes), graph (=pos in graph area 0.0.1.0), screen, character Set y2range # km -> mileĪdd Text to Plot set label "text" at 3.3e-3,90e-3 Important: you have to set plot range for x and x2!!! Plot data u (column("Date")):(column("Deaths_Last_Week_Per_Million")) t "Tote" axes x1y2 with lines ls 2, \ĭata u (timecolumn(2)-14*24*3600):(column("Deaths_Last_Week_Per_Million")) t "Tote verschoben um 14 Tage" axes x1y2 with lines ls 3 Set key on right top vertical Right noreverse noinvert samplen 4 spacing 1.25 title "" noboxĭate/Time Axis set timefmt '%Y-%m-%d' # %d.%m.%Y %H:%M Set key bottom left box width -3 reverse Left samplen 2 #invert title "Sinus" system ("convert -density 300 ".outfile.".mps ".outfile.".png") \ System ("mpost -tex=latex '".outfile.".mp'") If (term eq "mp" ) set terminal mp color solid latex psnfss prologues 2 magnification 1.00 If (term eq "png" ) set terminal png enhanced giant size 1024,768 My Favorite: Terminal MP (Metapost) (needs Latex and UbuntuPackage texlive-metapost) Set terminal png enhanced giant size 1024,768Īs otherwise the frame is drawn twice (can be found using inkscape) Layout Terminals set terminal postscript enhanced eps color solid # solid!!! Title "Verdopplungszeit" axis x1y2 with lines ls 5 linecolor rgb "sea-green" Using (column("Date")):(column("Cases_Last_Week_Doubling_Time")>0 ? column("Cases_Last_Week_Doubling_Time") : 1/0) \ ,data using (column("X-Values")):(column("Zwei")) title "Zwei" Plot different columns of same file using 2 y-axesĭata using (column("X-Values")):(column("Drei")) title "Drei" axes x1y2 \
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |