Plot_size_transferd.csv this is my data file (1.47 KiB) Downloaded 17 times this is what i get from Gnuplot wrong_graph.PNG (68.44 KiB) Viewed 385 times this is what i expect expected_graph.PNG (87. plot Band Structure Liren Lius Notebook 1.0 documentation plot Band Structure ¶ The bash script extracts data of. The correction offset can directly be inserted into the plotting command in the script. ps and afterwards converting the postscript file into a PDF with ps2pdf bands. If i run my gnuplot file i get a graph like you can see in file 'wrong_graph.PNG', but i expect a graph like in 'file expected_graph.PNG', which i created in excel withou any modifications.Ĭan you please explain me, whats wrong whith my plot file ? It can be used by invoking gnuplot < band. Plot "plot_size_transferd.csv" title "CDGSHG" with line lt -1 lw 1 linecolor rgb "blue" Set term jpeg enhanced giant size 1024,768 Set xtics rotate by 90 right out nomirror I have a data file (plot_size_transferd.csv) in csv format and a plot file like: [ - " '"++(dataFile params)++"' using 1:"++show i++" fs solid 1.Sorry for asking this question, but i'm new in Gnuplot and little confused. ++(dataFile params)++"' using 1:2 lt 1 lw 4 lc rgb '#ccccff' with filledcurves, " ++ "set border 0 set xzeroaxis lt 1 set yzeroaxis lt 1 \n" ++ "set style fill transparent solid 0.5 noborder\n" ++ "unset xtics unset ytics unset key \n" = "set terminal postscript \"Times-Roman\" 25 \n" class ( Plottable ( Datapoint dist ), Plottable ( Probability dist ), Num ( Probability dist ), PDF dist, MaybeShow ( Datapoint dist ) ) => PlottableDistribution dist where samplePoints :: dist -> plotType :: dist -> PlotType pdfL :: dist -> pdfL dist = map ( pdf dist ) $ samplePoints dist plotdata :: dist -> String plotdata dist = mconcat -> - instance PlotHList (HList ') where - plotargs HNil _ = - instance (PlotHList (HList xs)) => PlotHList (HList (x ': xs)) where - plotargs (x:::xs) (linecolor,bgcolor):colorL = - :(plotargs xs colorL) gnuplot :: ( PlottableDistribution dist ) => PlotParams -> dist -> String gnuplot params dist = yrange ++ plotcmd where plotcmd = case ( plotType dist ) of Bar -> "set tics scale 0 set xtics nomirror unset ytics unset key\n" ++ "set xzeroaxis lt 1 lc rgb '#000000'\n" - ++ "set ylabel \"Probability\"\n" ++ "set style data histogram set style histogram cluster gap 1\n" ++ "plot '" ++ ( dataFile params ) ++ "' using 2:xticlabels(1) lw 4 linecolor rgb '#0000ff' fs solid 1\n" Continuous -> "plot '" ++ ( dataFile params ) ++ "' using 1:2:(zero($2)) lt 1 lw 4 lc rgb '#ccccff' with filledcurves, " - Continuous -> "plot '"++(dataFile params)++"' using 1:2 lt 1 lw 4 lc rgb '#ccccff' with filledcurves, " ++ " '" ++ ( dataFile params ) ++ "' using 1:2 lt 1 lw 4 lc rgb '#0000ff' with lines" Points -> "plot '" ++ ( dataFile params ) ++ "' using 1:2 lt 1 lw 4 lc rgb '#0000ff' with points " positiveSamples = or $ map ( > 0 ) $ pdfL dist negativeSamples = or $ map ( -> IO () - plotDistributionL params distL = do - Create data file - putStrLn "Creating data file." - datah -> String genPlotParams :: String -> a -> PlotParams genPlotParams str a = plotFile str EPS - plotting classes class ( Show t, Ord t ) => Plottable t instance ( Show t, Ord t ) => Plottable t - | In order to plot a distribution, it must be an instance of this class. Src/HLearn/Models/Distributions/Visualization/Gnuplot.hs - | provided due to backwards compatibility with the nuclear weapons blog post.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |