matplotlib 0.4.1 → 0.4.3
raw patch · 6 files changed
+82/−80 lines, 6 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +74/−74
- imgs/contour.png binary
- matplotlib.cabal +1/−1
- src/Graphics/Matplotlib.hs +1/−1
- src/Graphics/Matplotlib/Internal.hs +1/−1
- test/Spec.hs +5/−3
README.md view
@@ -82,77 +82,77 @@ [![quiver][img_quiver]][url_quiver] [![pie][img_pie]][url_pie] -[img_pcolorlog]: https://i.imgur.com/O8hU7Rl.png "pcolorlog"-[url_pcolorlog]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L495-[img_griddata]: https://i.imgur.com/Lh2xOPf.png "griddata"-[url_griddata]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L602-[img_streamplot]: https://i.imgur.com/AveIggT.png "streamplot"-[url_streamplot]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L582-[img_hist2DLog]: https://i.imgur.com/PnPyJzO.png "hist2DLog"-[url_hist2DLog]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L275-[img_cumulative]: https://i.imgur.com/W9JinZC.png "cumulative"-[url_cumulative]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L217-[img_eventplot]: https://i.imgur.com/2chP6qg.png "eventplot"-[url_eventplot]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L280-[img_quiver]: https://i.imgur.com/7G7r9gu.png "quiver"-[url_quiver]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L423-[img_labelled-histogram]: https://i.imgur.com/cOCIlpy.png "labelled-histogram"-[url_labelled-histogram]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L226-[img_line-options]: https://i.imgur.com/0Jr83hl.png "line-options"-[url_line-options]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L249-[img_violinplot]: https://i.imgur.com/MaWL0BD.png "violinplot"-[url_violinplot]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L298-[img_density]: https://i.imgur.com/v7GoIno.png "density"-[url_density]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L241-[img_tex]: https://i.imgur.com/liZci2C.png "tex"-[url_tex]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L259-[img_scatterhist]: https://i.imgur.com/DG3obq8.png "scatterhist"-[url_scatterhist]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L305-[img_boxplot]: https://i.imgur.com/aaoMEql.png "boxplot"-[url_boxplot]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L292-[img_histogram]: https://i.imgur.com/yO6dxEO.png "histogram"-[url_histogram]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L214-[img_images]: https://i.imgur.com/3ZqQDxR.png "images"-[url_images]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L482-[img_polar]: https://i.imgur.com/BTXgvqa.png "polar"-[url_polar]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L450-[img_histMulti]: https://i.imgur.com/hO2CFGQ.png "histMulti"-[url_histMulti]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L334-[img_annotation]: https://i.imgur.com/cPSB8BX.png "annotation"-[url_annotation]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L539-[img_corr]: https://i.imgur.com/fh4Bv2X.png "corr"-[url_corr]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L254-[img_scatter]: https://i.imgur.com/qg7W3oc.png "scatter"-[url_scatter]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L219-[img_hinton]: https://i.imgur.com/RPkTFIJ.png "hinton"-[url_hinton]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L380-[img_quiver-fancy]: https://i.imgur.com/VQ5RrfJ.png "quiver-fancy"-[url_quiver-fancy]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L434-[img_quadratic]: https://i.imgur.com/fs96snF.png "quadratic"-[url_quadratic]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L245-[img_line-function]: https://i.imgur.com/5REiBVO.png "line-function"-[url_line-function]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L243-[img_integral]: https://i.imgur.com/OxGr14f.png "integral"-[url_integral]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L396-[img_contour]: https://i.imgur.com/kMxGGot.png "contour"-[url_contour]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L224-[img_projections]: https://i.imgur.com/laubT7H.png "projections"-[url_projections]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L247-[img_legend]: https://i.imgur.com/EmpXjUY.png "legend"-[url_legend]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L270-[img_spines]: https://i.imgur.com/fc9xwh5.png "spines"-[url_spines]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L352-[img_density-bandwidth]: https://i.imgur.com/e48WAPS.png "density-bandwidth"-[url_density-bandwidth]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L238-[img_bivariateNormal]: https://i.imgur.com/ngX1N2R.png "bivariateNormal"-[url_bivariateNormal]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L465-[img_pie]: https://i.imgur.com/DSRqr14.png "pie"-[url_pie]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L516-[img_show-matrix]: https://i.imgur.com/bd6x6Es.png "show-matrix"-[url_show-matrix]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L267-[img_hists]: https://i.imgur.com/hJaxZJt.png "hists"-[url_hists]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L371-[img_errorbar]: https://i.imgur.com/ooTcL40.png "errorbar"-[url_errorbar]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L287-[img_stacked]: https://i.imgur.com/TIqlAtR.png "stacked"-[url_stacked]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L523+[img_quadratic]: https://i.imgur.com/E4AafPD.png "quadratic"+[url_quadratic]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L248+[img_labelled-histogram]: https://i.imgur.com/lCVEpge.png "labelled-histogram"+[url_labelled-histogram]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L229+[img_contour]: https://i.imgur.com/KoAIf9Z.png "contour"+[url_contour]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L227+[img_eventplot]: https://i.imgur.com/UMT1yku.png "eventplot"+[url_eventplot]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L285+[img_bivariateNormal]: https://i.imgur.com/fTSfEzo.png "bivariateNormal"+[url_bivariateNormal]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L470+[img_legend]: https://i.imgur.com/X46KiUJ.png "legend"+[url_legend]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L275+[img_streamplot]: https://i.imgur.com/IfHLmkC.png "streamplot"+[url_streamplot]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L587+[img_scatter]: https://i.imgur.com/dceKS4I.png "scatter"+[url_scatter]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L222+[img_hist2DLog]: https://i.imgur.com/2fL8oEX.png "hist2DLog"+[url_hist2DLog]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L280+[img_cumulative]: https://i.imgur.com/u5I8NYF.png "cumulative"+[url_cumulative]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L220+[img_stacked]: https://i.imgur.com/rWIyizX.png "stacked"+[url_stacked]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L528+[img_images]: https://i.imgur.com/R1fhDXC.png "images"+[url_images]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L487+[img_errorbar]: https://i.imgur.com/gi0zEiz.png "errorbar"+[url_errorbar]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L292+[img_show-matrix]: https://i.imgur.com/ajY0A9l.png "show-matrix"+[url_show-matrix]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L272+[img_line-options]: https://i.imgur.com/Fahp7QA.png "line-options"+[url_line-options]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L252+[img_quiver-fancy]: https://i.imgur.com/NsOFHhx.png "quiver-fancy"+[url_quiver-fancy]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L439+[img_annotation]: https://i.imgur.com/9tdHiaT.png "annotation"+[url_annotation]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L544+[img_integral]: https://i.imgur.com/PkepIKR.png "integral"+[url_integral]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L401+[img_quiver]: https://i.imgur.com/TcayDLc.png "quiver"+[url_quiver]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L428+[img_projections]: https://i.imgur.com/IlK7Oy3.png "projections"+[url_projections]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L250+[img_density]: https://i.imgur.com/KS2OhbH.png "density"+[url_density]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L244+[img_griddata]: https://i.imgur.com/SH83pJK.png "griddata"+[url_griddata]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L607+[img_hinton]: https://i.imgur.com/m9a4IwL.png "hinton"+[url_hinton]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L385+[img_scatterhist]: https://i.imgur.com/9ZIVotE.png "scatterhist"+[url_scatterhist]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L310+[img_violinplot]: https://i.imgur.com/iBOfnuL.png "violinplot"+[url_violinplot]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L303+[img_histMulti]: https://i.imgur.com/FxEI3EI.png "histMulti"+[url_histMulti]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L339+[img_spines]: https://i.imgur.com/BryQOY9.png "spines"+[url_spines]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L357+[img_corr]: https://i.imgur.com/GnBpDJL.png "corr"+[url_corr]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L257+[img_pie]: https://i.imgur.com/ljgWXf6.png "pie"+[url_pie]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L521+[img_hists]: https://i.imgur.com/KurE2Sr.png "hists"+[url_hists]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L376+[img_tex]: https://i.imgur.com/bR8r579.png "tex"+[url_tex]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L262+[img_histogram]: https://i.imgur.com/X37Rmy4.png "histogram"+[url_histogram]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L217+[img_line-function]: https://i.imgur.com/zkpfQqW.png "line-function"+[url_line-function]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L246+[img_density-bandwidth]: https://i.imgur.com/Qgjvrox.png "density-bandwidth"+[url_density-bandwidth]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L241+[img_boxplot]: https://i.imgur.com/KigvYSc.png "boxplot"+[url_boxplot]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L297+[img_polar]: https://i.imgur.com/4DAOrF1.png "polar"+[url_polar]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L455+[img_pcolorlog]: https://i.imgur.com/ZLUoUqy.png "pcolorlog"+[url_pcolorlog]: https://github.com/abarbu/matplotlib-haskell/blob/master/test/Spec.hs#L500
imgs/contour.png view
binary file changed (165299 → 126069 bytes)
matplotlib.cabal view
@@ -1,5 +1,5 @@ name: matplotlib-version: 0.4.1+version: 0.4.3 synopsis: Bindings to Matplotlib; a Python plotting library description: Matplotlib is probably the most full featured plotting library out there.
src/Graphics/Matplotlib.hs view
@@ -219,7 +219,7 @@ -- | Enable or disable TeX setTeX :: Bool -> Matplotlib-setTeX b = mp # "matplotlib.rcParams['text.usetex'] = " # b+setTeX b = mp # "plot.rc('text', usetex="# b #")" -- | Enable or disable unicode setUnicode :: Bool -> Matplotlib
src/Graphics/Matplotlib/Internal.hs view
@@ -303,7 +303,7 @@ (\codeFile codeHandle -> do forM_ codeStr (hPutStrLn codeHandle) hClose codeHandle- Right <$> readProcess "/usr/bin/python3" [codeFile] ""))+ Right <$> readProcess "/usr/bin/env" ["python3", codeFile] "")) (\e -> return $ Left $ show (e :: IOException)) pyBackend backend = "matplotlib.use('" ++ backend ++ "')"
test/Spec.hs view
@@ -257,11 +257,13 @@ (ys :: [Double]) = take 100 normals -- | http://matplotlib.org/examples/pylab_examples/tex_unicode_demo.html-mtex = plotMapLinear cos 0 1 100- % setTeX True+mtex = setTeX True % setUnicode True+ % figure+ % addSubplot 1 1 1+ % plotMapLinear cos 0 1 100 % xlabel [r|\textbf{time (s)}|]- % ylabel [r|\textit{Velocity (\u00B0/sec)}|] @@ [o2 "fontsize" 16]+ % ylabel "\\textit{Velocity (°/sec)}" @@ [o2 "fontsize" 16] % title [r|\TeX\ is Number $\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!"|] @@ [o2 "fontsize" 16, o2 "color" "r"] % grid True