pandoc-pyplot-2.0.1.0: A Pandoc filter for including figures generated from Matplotlib

Copyright(c) Laurent P René de Cotret 2019
LicenseMIT
Maintainerlaurent.decotret@outlook.com
Stabilityinternal
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.Pandoc.Filter.FigureSpec

Description

This module defines types and functions that help with keeping track of figure specifications

Synopsis

Documentation

data FigureSpec Source #

Datatype containing all parameters required to run pandoc-pyplot

Constructors

FigureSpec 

Fields

Instances
Hashable FigureSpec Source # 
Instance details

Defined in Text.Pandoc.Filter.FigureSpec

data SaveFormat Source #

Constructors

PNG 
PDF 
SVG 
JPG 
EPS 

saveFormatFromString :: String -> Maybe SaveFormat Source #

Parse an image save format string

toImage :: FigureSpec -> Block Source #

Convert a FigureSpec to a Pandoc block component

sourceCodePath :: FigureSpec -> FilePath Source #

Determine the path to the source code that generated the figure.

figurePath :: FigureSpec -> FilePath Source #

Determine the path a figure should have.

addPlotCapture Source #

Arguments

:: FigureSpec

Path where to save the figure

-> PythonScript

Code block with added capture

Modify a Python plotting script to save the figure to a filename. An additional file will also be captured.

extension :: SaveFormat -> String Source #

Save format file extension