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


sr #109137: WebGL export of ColorLegend

Submitted by:  Tran Phuong Toan <phuotran>
Submitted on:  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

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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>
Project 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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.7