Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We need jupyter tutorial for vcs syntax for writing formulas #2073

Closed
doutriaux1 opened this issue Aug 4, 2016 · 5 comments
Closed

We need jupyter tutorial for vcs syntax for writing formulas #2073

doutriaux1 opened this issue Aug 4, 2016 · 5 comments

Comments

@doutriaux1
Copy link
Contributor

in 1.5.1 the follwoing used to work:

import vcs
x=vcs.init()
t=x.createtext()
t.string="E=mc!U2"
t.x=[.5]
t.y=[.5]
x.plot(t)

mc2

@aashish24
Copy link
Contributor

@danlipsa

@aashish24
Copy link
Contributor

@doutriaux1 will confirm whether this bug exist on not.

I will send a sample VTK code to confirm VTk supports it.

@danlipsa
Copy link
Contributor

danlipsa commented Apr 7, 2017

@doutriaux1 @aashish24 vcs/vtk does support math text using the syntax:
"$E=mc^2$".

This is the syntax that matplotlib uses and it is a subset of latex. Is the syntax you used the legacy vcs syntax? Do we need to support that or should we switch to the much more common matplotlib/latex syntax.
Note that you can write entire formulas with this syntax.
http://www.paraview.org/Wiki/File:MathText-sphere.png

@doutriaux1
Copy link
Contributor Author

@danlipsa true and tested a few weeks back, I want to write a jupyter notebook about it. The sad part though is that it's via matplotlib...

@danlipsa
Copy link
Contributor

@doutriaux1 I'll rename this issue than, to tell us to write a jupyter tutorial ...

@danlipsa danlipsa changed the title vcs cannot do sub and superscript anymore We need jupyter tutorial for vcs syntax for writing formulas Apr 10, 2017
@doutriaux1 doutriaux1 modified the milestones: 3.0, 3.2 Mar 29, 2019
@downiec downiec modified the milestones: 8.2, 8.2.1 Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants