Skip to main content

Aesthetics and Framework

Project description

Aesthetics

To use only the aesthetics and not the framework simply use create a class instance and call for PlotLikeR().plot_cfg() and/or PlotLikeR().plot_cfg_grid() methods.

In the matplotlib documentation it is possible to find a description of each individual parameter. The majority of which, in the Aesplot library, are set as the default. For more check this link: https://matplotlib.org/stable/tutorials/introductory/customizing.html#the-default-matplotlibrc-file .

Framework

Use a separate python file to create the basic framework structure. Modify the new file or string to make your analysis.

Utils

Fixing the SVG export from matplotlib

When saving the matplotlib figure as SVG, the syntax used doesn’t contain any <text></text>. Instead, matplotlib opts for creating there own letters as mathematical curves. This can be an issue due to the “low resolution” aspect of these curves. To solve this, an utility tool was developed to find and replace the curves for letters.

Additionally, when using LaTex equations in labels and/or legends, some elements can also be converted into HTML syntax.

Converting LaTex to HTML

Some mathematical notation is usually used when plotting graphs such as square root, superscript, index and many others. And, since matplotlib supports LaTex interpretation/compilation, it is useful to have a translation from one markup language to another.

Using utils.SVGText() replaces markups, such as /textbf{}, into an equivalent <tspan></tspan> around the tag. More LaTex markups will be added in the future.

Dependencies

To-dos

  • Expand the latex functions that can be interpreted and translated

  • Develop tests

  • Create data examples and plot examples

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aesplot-1.1.tar.gz (15.8 kB view hashes)

Uploaded Source

Built Distribution

aesplot-1.1-py3-none-any.whl (15.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page