plot.subplots() in a custom viewer

9 views
Skip to first unread message

Marc Lechuga

unread,
Dec 5, 2019, 3:51:01 AM12/5/19
to Glue users
Hi all,
I am a newbie at Glue but I enjoy it yet very much. 
I am trying to visualize biological analysis  that are organized in matrixes of 384 result (row, column: 16x24). Each result is numerical and each set of 384 as an ID.
I can easily represent these result using a Matplotlib subplots of scatterplots with (x=column, y=row, c=value) for each ID (see below). I managed to set up a custom viewer in Glue for one set of 384 results. that works very well. 
 How could I adapt this to a custom viewer in glue, if it's possible, please? If it's not how could I automate the generation of n single views (one per set/ID)?
Thank you.
Marc

plates.png


Thomas Robitaille

unread,
Feb 9, 2020, 10:46:13 AM2/9/20
to glue...@googlegroups.com
Hi Marc,

Apologies for the delayed response - if you already have created a custom viewer to show one set of 384 results, the easiest way to then show multiple IDs might be to start up glue with a script like the one at http://docs.glueviz.org/en/stable/python_guide/data_viewer_options.html which shows how to programmatically open new viewers. When you do this you can also programmatically change the position/size of the viewers, so this means you could for example write a script that opens up 16 different datasets/matrices and shows them in a grid of 4 by 4 viewers. Let me know if you run into any issues, and feel free to send me an example dataset and the code you have so far for the custom viewer.

Cheers,
Tom



--
You received this message because you are subscribed to the Google Groups "Glue users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glue-viz+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/glue-viz/df2d9d42-c9f3-4aae-8ff1-dd111f750651%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages