Ask Your Question
0

Not interactive plot

asked 2024-06-23 04:38:42 +0200

bobby.mir gravatar image

I'm using method="js" in plotting. However I do not want to have an interactive plot. For instance, if you try

HH= Graph('Oq@?oOOB?ACOGW_A?`_@a', format='graph6')

HH.show(method="js",vertex_labels=True)

you will get an interactive plot.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2024-06-24 20:28:12 +0200

Emmanuel Charpentier gravatar image

Well...

If I understand you correctly, the display of your graph in a browser rendering an HTML image displeases you. But you asked for it with the option method=js...

sage: HH.show(vertex_labels=True)
Launched png viewer for Graphics object consisting of 41 graphics primitives

gives you a static image ; you may try to save it in a vector format (e. g. SVG) with HH.save(...); more details in HH.show? and HH.save?.

HTH,

edit flag offensive delete link more

Comments

I want to use method="js" because I want to move vertices. More precisely, I want to move a vertex without changing the locations of the other vertices. This does not happen in the following example:

g = graphs.PetersenGraph() g.show(method="js", vertex_partition=g.coloring())

However, when I change the method to "HH", I don't have this feature.

bobby.mir gravatar imagebobby.mir ( 2024-06-25 02:00:40 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2024-06-23 04:38:42 +0200

Seen: 49 times

Last updated: Jun 24