在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):abarbu/matplotlib-haskell开源软件地址(OpenSource Url):https://github.com/abarbu/matplotlib-haskell开源编程语言(OpenSource Language):Haskell 83.6%开源软件介绍(OpenSource Introduction):Matplotlib for HaskellHaskell 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 InstallationYou 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
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 ExamplesClick 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. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论