Making the equation format external

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

Gimly wrote at 2013-10-03 12:13:

I really like the way OxyPlot uses the Latex notation to display numbers, especially on the axis with the "SuperExponentialFormat" and I was wondering how hard it would be to make those features available to use outside of OxyPlot.

Writing superscript and subscript in WPF is a real pain, and I find that OxyPlot does a good job at doing that. With the added option to be able to format using "Super exponential", I think those features could get nearly be on their own project.

What do you think objo?

objo wrote at 2013-10-03 15:14:

1: I would like to see issue 7717 solved
https://oxyplot.codeplex.com/workitem/7717

2: Support for full Latex syntax in the core (PCL) library, using simple rendering methods (like IRenderContext)

3: Creating controls in WPF, SL, Winforms, Android or iOS should then be quite easy :)

I don't want to move this functionality out of the OxyPlot core, but you are welcome to create a new project based on the (very simple) implementation in MathRenderingExtensions.cs! But the best would of course be to fix the defect and add the enhancements to OxyPlot. Adding a simple WPF control showing equations can easily be added into OxyPlot.Wpf.

objo wrote at 2013-10-07 20:34:

I added a "MathBlock" control for WPF (.NET 4.5). See the demo.
It would be cool to extend the Tex support a little bit (e.g. /frac, /sqrt /sum /prod etc.) ... :)

http://jmathtex.sourceforge.net/ (GPL)
http://www.math.union.edu/~dpvc/jsMath/
https://launchpad.net/mathtexdotnet

Gimly wrote at 2013-10-08 12:41:

Awesome! I'll take a look at the issue and seeing how to add Latex syntax when I have time. Thanks!