Making the equation format external

Oct 3, 2013 at 10:13 AM
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?
Oct 3, 2013 at 1:14 PM
Edited Oct 4, 2013 at 6:45 AM
1: I would like to see issue 7717 solved

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.
Oct 7, 2013 at 6:34 PM
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.) ... :) (GPL)
Oct 8, 2013 at 10:41 AM
Awesome! I'll take a look at the issue and seeing how to add Latex syntax when I have time. Thanks!