mainpyFormex - Support: sr #109137, WebGL export of ColorLegend


sr #109137: WebGL export of ColorLegend

Submitter:  Tran Phuong Toan <phuotran>
Submitted:  Thu 08 Sep 2016 09:23:27 AM UTC
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Privacy:  Public
Assigned to:  None Open/Closed:  Open
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup

Thu 08 Sep 2016 09:23:27 AM UTC, original submission:  


I tried to export some meshes with a ColorLegend using the WebGL module but without succeeding. A sample code :

CS = colorscale.ColorScale(palet='RAINBOW', minval=0., maxval=max_value)
CLA = decors.ColorLegend(CS, n_colors, 60, 50, 40, 600, lefttext=True)

W = WebGL(name='myname', cleanup=True)

With this code, the html file is just blank (with the pyformex logo), no mesh or controller displayed. If I remove the instruction W.addActor(CLA), all meshes are correctly displayed, but the ColorLegend does not appear, although it seems that a .pgf.gz corresponding to the actor is written. The controller doesn't seem to have the ColorLegend actor listed either.

I'm not quite sure if the sequence of instructions is correct or why the html is blank when adding the ColorLegend to the scene. Or maybe the decorators are not meant to be exported ?

I'm using pyFormex 1.0.2-a6.


Tran Phuong Toan <phuotran>
Group Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by phuotran (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code