Skip to content

TeX formulas in chart elements #125

@imagingbook

Description

@imagingbook

Hello Tim,
I guess this is more of a comment/proposal than an issue...
Something I always wanted is a plotting package that supports the use of professionally-looking mathematical elements for plot axes, legends etc. Since I could not find anything suitable (even professional tools do not offer this), I started out about 2 weeks ago to marry forks of XChart and JLatexMath to get this working. The main features I had in mind are

  • the possibility to replace axis labels, legends, and chart titles by TeX-formated math elements ("$...$"),
  • the use of proper minus signs in numerical values (turned out to be easy),
  • the use of standard TeX fonts (Computer Modern) for axis tick labels.

I am attaching an example below. I also added PDF output with iText (which I regularly use).
What was originally intended for personal use only ended up in quite some coding work, so I decided to put a preliminary version online (http://sourceforge.net/projects/jtexxchart/). However, if you like the idea and there is interest to merge this into the main XChart distribution, I'd be happy to contribute. Please let me know what you think about this.

--Wilhelm

Example output:
jtexxchart-example

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions