I suggest you ...

Add ability to use LaTeX in text and axis text

Add ability of using LaTeX to input text into paraview, as legends or in axis.

205 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Ricardo ReisRicardo Reis shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    11 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • CaseyCasey commented  ·   ·  Flag as inappropriate

        I use mlab.text to display labels read from a csv file using Mayavi, it would be great to be able to read labels from a random csv file for use with Paraview as well.

        Creating labels in mayavi goes something like this

        vtk_file = 'Labels'

        d = VTKFileReader(name = 'Labels')

        d.initialize ( vtk_file )
        mayavi.add_source(d)

        data = csv.reader(open('LabelFile.csv','r'),delimiter=',')

        for subdata in data:
        mlab.text(x = float(subdata[0]),y = float(subdata[1]), z = float(subdata[2]), text = subdata[3], width = 0.05, name = subdata[3], color=(0,0,0))

      • noojnooj commented  ·   ·  Flag as inappropriate

        > [nooj's solution] is cumbersome, inelegant and bad for general workflow.

        i couldn't agree more. my only MML experience, though, is with browser implementations, which commonly result in bad layout. i haven't heard of inkscape nor been shown a viable solution a la david's. if it's workable, this could definitely win me over.

      • berk.geveciAdminberk.geveci (Admin, paraview) commented  ·   ·  Flag as inappropriate

        I think that this would be a great feature to have. It is not on our radar in the short term but we should keep discussing it here and hopefully this will align with a project that can fund it.
        My vote would be for using Latex as the input. As David said, we need to be able to render the right glyphs and also lay out equations. Is there a self-contained (hopefully Qt-based) solution out there? Hopefully a library of small to moderate size?

      • Ricardo ReisRicardo Reis commented  ·   ·  Flag as inappropriate

        Inkscape does it, why can't Paraview do it? Just check their plugin.

        nooj: "I think the current solution of exporting a snapshot that is then cropped and imported into the latex document is a viable long-term solution."

        That solution is cumbersome, inelegant and bad for general workflow.

      • noojnooj commented  ·   ·  Flag as inappropriate

        I think this is a little too hard to implement. Latex allows some pretty crazy things that are far outside the scope of what paraview should be doing. It seems easy to throw in a few backslashes and dollar signs, but things get hard fast.

        I think the current solution of exporting a snapshot that is then cropped and imported into the latex document is a viable long-term solution.

      • David ThompsonDavid Thompson commented  ·   ·  Flag as inappropriate

        This is really 3 requests, all of which are important:
        (1) Proper rendering of character glyphs outside the 7-bit ASCII range
        (2) The ability to lay out and render mathematical equations
        (3) Easy input of equations. LaTeX is really the best human interface for this, especially when compared to MathML which is easier for machines to process but much more tedious to type. Plus there are LaTeX->MathML converters out there (http://www.maths.nott.ac.uk/personal/drw/lm.html in JavaScript for instance).

      • Ricardo ReisRicardo Reis commented  ·   ·  Flag as inappropriate

        Other markup or input option could be used. The important result would be to be able to have relatively sophisticated mathematical output in paraview text boxes..

      Feedback and Knowledge Base