All Projects → abarbu → matplotlib-haskell

abarbu / matplotlib-haskell

Licence: other
Haskell bindings for Python's Matplotlib

Programming Languages

haskell
3896 projects
Nix
1067 projects
shell
77523 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to matplotlib-haskell

nodeplotlib
NodeJS plotting library for JavaScript and TypeScript. On top of plotly.js. Inspired by matplotlib.
Stars: ✭ 115 (+43.75%)
Mutual labels:  charts, plot, matplotlib
Jp
dead simple terminal plots from JSON data. single binary, no dependencies. linux, osx, windows.
Stars: ✭ 1,184 (+1380%)
Mutual labels:  charts, plot
Uplot
📈 A small, fast chart for time series, lines, areas, ohlc & bars
Stars: ✭ 6,808 (+8410%)
Mutual labels:  charts, plot
Charts
⚡ Laravel Charts — Build charts using laravel. The laravel adapter for Chartisan.
Stars: ✭ 2,337 (+2821.25%)
Mutual labels:  charts, plot
reddit-hot-recorder
Records the activity (comments and karma) on the hot page of a Reddit sub and prepare an animated data visualisation.
Stars: ✭ 89 (+11.25%)
Mutual labels:  plot, matplotlib
Vega Lite
A concise grammar of interactive graphics, built on Vega.
Stars: ✭ 3,568 (+4360%)
Mutual labels:  charts, plot
Godot Engine.easy Charts
A Godot Engine addon for plotting general purpose charts. A collection of Control, 2D and 3D Nodes to plot every chart possible.
Stars: ✭ 146 (+82.5%)
Mutual labels:  charts, plot
Rustplotlib
A Rust's binding of matplotlib
Stars: ✭ 31 (-61.25%)
Mutual labels:  plot, matplotlib
publib
Produce publication-level quality images on top of Matplotlib
Stars: ✭ 34 (-57.5%)
Mutual labels:  plot, matplotlib
sarviewer
Generate graphs with gnuplot or matplotlib (Python) from sar data
Stars: ✭ 60 (-25%)
Mutual labels:  plot, matplotlib
heatmaps
Better heatmaps in Python
Stars: ✭ 117 (+46.25%)
Mutual labels:  plot, matplotlib
Matplotlib4j
Matplotlib for java: A simple graph plot library for java with powerful python matplotlib
Stars: ✭ 107 (+33.75%)
Mutual labels:  plot, matplotlib
mltb
Machine Learning Tool Box
Stars: ✭ 25 (-68.75%)
Mutual labels:  plot, matplotlib
Pywaffle
🧇 Make Waffle Charts in Python.
Stars: ✭ 406 (+407.5%)
Mutual labels:  charts, matplotlib
Itermplot
An awesome iTerm2 backend for Matplotlib, so you can plot directly in your terminal.
Stars: ✭ 1,267 (+1483.75%)
Mutual labels:  plot, matplotlib
G2plot
🍡 An interactive and responsive charting library
Stars: ✭ 2,072 (+2490%)
Mutual labels:  charts, plot
Vapeplot
matplotlib extension for vaporwave aesthetics
Stars: ✭ 483 (+503.75%)
Mutual labels:  plot, matplotlib
Adjusttext
A small library for automatically adjustment of text position in matplotlib plots to minimize overlaps.
Stars: ✭ 731 (+813.75%)
Mutual labels:  plot, matplotlib
Swiftcharts
Easy to use and highly customizable charts library for iOS
Stars: ✭ 2,336 (+2820%)
Mutual labels:  charts, plot
SwiftCharts
Easy to use and highly customizable charts library for iOS
Stars: ✭ 2,405 (+2906.25%)
Mutual labels:  charts, plot

matplotlib contour plot

Matplotlib for Haskell

Build Status Hackage

Haskell bindings to Python's Matplotlib. It's high time that Haskell had a fully-fledged plotting library! Examples below.

Documentation is available on Hackage.

In GHCi:

:set -XExtendedDefaultRules
import Graphics.Matplotlib
onscreen $ contourF (\a b -> sin (a*pi/180.0) + cos (b*pi/180.0)) (-100) 100 (-200) 200 10

Or in a standalone file

{-# LANGUAGE ExtendedDefaultRules #-}

import Graphics.Matplotlib

main = onscreen $ contourF (\a b -> sin (a*pi/180.0) + cos (degreesRadians b)) (-100) 100 (-200) 200 10

We need -XExtendedDefaultRules to avoid having to manually having to specify certain types.

Installation

You will need several python libraries to run this code which can be installed on Ubuntu machines with the following command:

sudo apt-get install -y python3 python3-pip python3-matplotlib python3-numpy python3-tk python-mpltoolkits.basemap python3-scipy dvipng

If you're using conda

conda install -y matplotlib scipy tk

If you have instructions for other machines or OSes let me know. We require the python3 binary to be available somewhere in the PATH. We run with env python3.

Once you have the prerequisites you can install using the standard incantation

stack install matplotlib

If you use LaTeX markup you will need the requisite packages

sudo apt-get install -y texlive-full

Or with conda

conda install -y -c conda-forge texlive-core

Examples

Click on any of the examples below to go to the corresponding test that generates it. Depending on your matplotlib version default colors might be different.

integral griddata streamplot hist2DLog quadratic spines annotation corr bivariateNormal images labelled-histogram projections histogram pcolorlog scatter stacked legend errorbar line-options quiver-fancy contour boxplot show-matrix scatterhist hinton density violinplot histMulti cumulative polar hists tex eventplot line-function density-bandwidth quiver pie

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].