n2       !"#$%&'()*+,-./012345678 9 : ; < = > ? @ A B C D E F G H I J K L M N O P QRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~   #             HThe default options contain what we expect as default value in gnuplot. :We need an entry for every option that cannot be reset by unset. /Add an option with arguments as plain strings. *This is very flexible, but not very safe. Use it only as fall-back, +if there is no specific setter function in  Graphics.Gnuplot.Frame.OptionSet. Remove an option.  CConvert the difference between the first and the second option set into a sequence of set and unset commands.    !"#!"#!"#!"#$%$%$%%Use it this way:  import Data.Time  import Graphics.Gnuplot.Simple   main = 4 plotPath [XTime, XFormat "%m-%d"] $ prepXTime $ 9 (UTCTime (fromGregorian 2008 01 01) 0, 1.0) : 9 (UTCTime (fromGregorian 2008 01 05) 43200, 5.0) : 9 (UTCTime (fromGregorian 2008 01 15) 0, 2.5) :  []  &'()* &'()* &'()*+,:The lines of the gnuplot script to be piped into gnuplot Options for gnuplot +,+,-./01234-./01234-../01201234!The plot function returns 5, which is nice for programming (but ugly for interactive GHCi sessions. For interactive sessions,  better use Graphics.Gnuplot.Simple. gfx must be one of the types Plot, Frame,  MultiPlot. 6!!!789:";<=>?@#$%&'()*6Embed a font file in the generated PostScript output.  Each call adds a new font file, $there is no way to remove it again. AB "#$%&'()* "#$%&'()* "#$%&'()*CDEFGH+IJKLMN,-./01234567OP +,-./01234567 +,-./01234567 +,-./01234567 8QR9898989 :STU;<=>?:;<=>?:;<=>?:;<=>? @ABCDEFG@ABCDEFGBCDEF@AG@AABCDEFCDEFG HIJKLMHIJKLMHIJKLMHIIJKLM NOP(The right pair member is a dummy result + that is needed only for type inference.  Expect that it is undefined VNOPNOPNOPOPWXYQRSZWXYQRSZWXXYQRSZ [\]^_`Plots can be assembled using a or mconcat. bcdefg9In contrast to the Display.toScript method instantiation "this function leaves the options, Gand thus can be used to write the Display.toScript instance for Frame. h [\]^_`bcdefgh [\]^_\]^_`bbcdefghTijkTijkTijkijk UlmVnopqrWXYZUVWXYZVUWXYZUVWXYZ $stu[\]^_`abcdefghijklmnopqrstuvwxyzv$stu[\]^_`abcdefghijklmnopqrstuvwxyzv$sttu[\]^_`abcdefghijklmnopqrstuvwxyzv!{wxyz{|}|}~~{wxyz{|}|}~~{wxyz{|}wxyz{|}|}~~"?You can alter the line specification of graphs in a plot using . #[\]^_`abcdefghijklmnopqrstuvwxyz#[\]^_`abcdefghijklmnopqrstuvwxyz#   QRSQRS+Set parameters of viewing a surface graph. See  info:gnuplot/view  rotateX  rotateZ scale scaleZ Show flat pixel map. TT{|}~{|}~Plots can be assembled using mappend or mconcat.   Plots can be assembled using mappend or mconcat. 2You can alter attributes of embedded graphs using .  Y list Type.listLines (take 30 (let fibs = 0 : 1 : zipWith (+) fibs (tail fibs) in fibs)) k list Type.lines (take 30 (let fibs0 = 0 : fibs1; fibs1 = 1 : zipWith (+) fibs0 fibs1 in zip fibs0 fibs1))  4 function Type.line (linearScale 1000 (-10,10)) sin  < functions Type.line (linearScale 1000 (-10,10)) [sin, cos]  T parameterFunction Type.line (linearScale 1000 (0,2*pi)) (\t -> (sin (2*t), cos t))   uBe careful with  )which can only be used as part of gnuplot's plot command but not as part of set.  That is,  @ plotList [LineStyle 0 [LineTitle "foobar"]] [0,5..100::Double] 7will leave you with an invalid gnuplot script, whereas  b plotListStyle [] (defaultStyle {lineSpec = CustomStyle [LineTitle "foobar"]}) [0,5..100::Double] does what you want. The $ types would be better enumerations Abut their interpretations depend on the gnuplot output type. :-( you cannot use this, call  instead &anything that is allowed after gnuplot's set command  Q plotList [] (take 30 (let fibs = 0 : 1 : zipWith (+) fibs (tail fibs) in fibs))   plotListStyle [] (defaultStyle{plotType = CandleSticks}) (Plot2D.functionToGraph (linearScale 32 (0,2*pi::Double)) (\t -> (-sin t, -2*sin t, 2*sin t, sin t)))  - plotFunc [] (linearScale 1000 (-10,10)) sin  5 plotFuncs [] (linearScale 1000 (-10,10)) [sin, cos]  I plotParamFunc [] (linearScale 1000 (0,2*pi)) (\t -> (sin (2*t), cos t))  d plotParamFuncs [] (linearScale 1000 (0,2*pi)) [\t -> (sin (2*t), cos t), \t -> (cos t, sin (2*t))]  p let xs = [-2,-1.8..2::Double] in plotMesh3d [] [] (do x <- xs; return (do y <- xs; return (x,y,cos(x*x+y*y))))   S let xs = [-2,-1.8..2::Double] in plotFunc3d [] [] xs xs (\x y -> exp(-(x*x+y*y)))  ;Redirects the output of a plotting function to an EPS file * and additionally converts it to PDF. 8Drawing function that expects some gnuplot attributes.  "Creates an EPS and a PDF graphics D and returns a string that can be inserted into a LaTeX document  to include this graphic. Different from GHCi, Hugs doesn'*t output a return value from an IO monad.  So you must wrap it with a . O Nevertheless this implementation which returns the LaTeX command as string  is the most flexible one. 8Drawing function that expects some gnuplot attributes. f    f    e   $%&'()*+,-./0123456789:;<=$>?@ABCD$EFGHIJKL$EMNOPQRSTUVW $ E $ E ' X Y Z @ [ \ \ ] ^ _ ` $ % a b c d @ e fgh,$i$jklm n o p q r s t u v w x y z { | } ~  g h!$!!!!!!!'""$"##$#)'123:;<-E$$@\      %$%@$%[  !"#%$%&'()*+,-./0%$123456 % $ % 7 8 9$%:$;<$=>%?@ AB%CDiD%EFGH $ % : !%!I!J!K!L!M!7!"N"O"%"P"Q"R"S""""TUV#N#%#P#Q#R####TWXYZ[\]^_`abcdefghijklmnognuplot-0.4.1.1Graphics.Gnuplot.Frame.Option Graphics.Gnuplot.Frame.OptionSetGraphics.Gnuplot.GraphGraphics.Gnuplot.Time&Graphics.Gnuplot.Plot.ThreeDimensionalGraphics.Gnuplot.Advanced$Graphics.Gnuplot.Terminal.PostScriptGraphics.Gnuplot.Terminal.PNGGraphics.Gnuplot.Terminal.SVGGraphics.Gnuplot.Terminal.X11Graphics.Gnuplot.Value.Atom Graphics.Gnuplot.Value.ColumnSetGraphics.Gnuplot.Value.Tuple'Graphics.Gnuplot.Graph.ThreeDimensionalGraphics.Gnuplot.FrameGraphics.Gnuplot.MultiPlot%Graphics.Gnuplot.Graph.TwoDimensional"Graphics.Gnuplot.LineSpecification$Graphics.Gnuplot.Plot.TwoDimensionalGraphics.Gnuplot.Simple$Graphics.Gnuplot.Private.FrameOptionGraphics.Gnuplot.Display'Graphics.Gnuplot.Private.FrameOptionSetGraphics.Gnuplot.Private.Graph#Graphics.Gnuplot.Private.GraphEmptyGraphics.Gnuplot.UtilityGraphics.Gnuplot.ExecuteGraphics.Gnuplot.Terminal$Graphics.Gnuplot.Private.Graph3DTypeGraphics.Gnuplot.Private.PlotGraphics.Gnuplot.Private.Frame$Graphics.Gnuplot.Private.Graph2DType*Graphics.Gnuplot.Private.LineSpecification Graphics.Gnuplot.Private.Graph2D Graphics.Gnuplot.Private.Graph3DTConscustomtitlegridsizekeyborderpm3dviewxRangeyRangezRangexLabelyLabelzLabelxTicksyTickszTicksxDatayDatazDataxFormatyFormatzFormattimeFmtaddremoveC prepXTimefunctionToGraph linearScaleplotcons landscapeportraitepscolor monochromefont embedFont transparent noTransparent interlace noInterlace trueColor noTrueColorfontTiny fontSmall fontMedium fontLarge fontGiantnoTitlepersist noPersistoptions OptionSetoptData optFormat optOthers timeOptionsatompairtriple quadrupletextnumberimpulsesvectorsPart partFromFrame partFromPlotsimpleFromFrameArraysimpleFromPartArray listLines listPointslistLinesPoints listImpulseslistDotsxErrorBarsRelativeyErrorBarsRelativexyErrorBarsRelativexErrorBarsAbsoluteyErrorBarsAbsolutexyErrorBarsAbsolutexErrorLinesRelativeyErrorLinesRelativexyErrorLinesRelativexErrorLinesAbsoluteyErrorLinesAbsolutexyErrorLinesAbsolutelinespoints linesPointsdotsstepsfStepshiSteps errorBars errorLinesboxes filledCurves financeBars candleSticksdeflt lineStylelineType lineWidth pointType pointSizeTypelineSpecxRange2dyRange2dxRange3dyRange3dzRange3dviewMapsimpleemptycloudmeshsurfacelistfunction functionsparameterFunction listFromFile pathFromFile Attribute3dCornersToColor Plot3dTypeCorner4Corner3Corner2Corner1Median GeometricMeanMeanColorMapSurface PlotStyleplotTypePlotTypePM3dVectors CandleSticks FinanceBarsBoxXYErrorBars BoxErrorBars FilledCurvesBoxes XYErrorLines YErrorLines XErrorLines ErrorLines XYErrorBars YErrorBars XErrorBars ErrorBarsHiStepsFStepsStepsDotsImpulses LinesPointsPointsLinesLineSpec CustomStyle DefaultStyleLineAttr LineTitle PointSize PointType LineWidthLineTypeAspectNoRatioRatioSizeSepScaleScale AttributeXFormatXTimeColorBoxPaletteZRangeYRangeXRangeYLabelXLabelTitle LineStyle BoxAspectYTicksXTicksBorderKeyGridTerminalPNGEPSCustom defaultStyleterminalplotList plotListStyle plotListsplotListsStyleplotFunc plotFuncsplotPath plotPaths plotPathStyleplotPathsStyle plotParamFuncplotParamFuncsplotDots plotMesh3d plotFunc3d epspdfPlotinclPlottoScriptFilefilenamecontentBodyfilescommandsScript runScript writeDatadeconsPlaininitial diffToStringcommandtoString defltOptions showTriplet commaConcatsemiColonConcatquote assembleCells tmpScript canonical formatBoolbaseGHC.IO.ExceptionExitCodeformatTerminalModePortrait Landscape filename_mode_color_ embedFont_font_ formatModesetModeFontSize FontGiant FontLarge FontMedium FontSmallFontTiny transparent_ interlace_ trueColor_ fontSize_formatFontSize setFontSizetitle_persist_ singleton tupleSizecontent_graphs_ Data.MonoidmappendwithUniqueFile fromGraphs tmpFileStemplotCmdoptionscriptFromPart_optionnumRows numColumnsparts lineStyle_ lineType_ lineWidth_ pointType_ pointSize_ AxisOptionColumncolumn_type_ lineSpec_columnToStringtypGHC.BasefmaprangelabelformatfromFileghc-prim GHC.TypesInt System.IOputStr attrToProgxRangeFromAttryRangeFromAttrzRangeFromAttr extractRangesplotTypeToGraphplot3dTypeToStringcornersToColorToStringattribute3dToStringplot2d setPlotStyleplot3dlineSpecRecordlineAttrRecord callGnuplot