-
-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
graph plotting -- ploting of graphs (networks) is somehow messed up/scaled wrong/cropped wrong since it doesn't work with graphics_array #5938
Comments
comment:1
Even this (following the above example), results in hideous mis-cropped plots, and it doesn't use graphics array at all:
|
comment:2
And even this results in bits being chopped off that shouldn't be!
|
comment:3
I'm still working on this, but I have some updates. It looks like the first problem is the buffer size on scatter_plot. It's including the points, but not the vertex radius of the outermost points. That should be simple enough to fix, but then I'll also look at some auto-scaling to make the graphics_array a little nicer. I also feel like the graphs_list module had some nice parameters for graphics_arrays of graphs, but they might be outdated now that graph plotting is native in Sage. I'll check into that too though. |
comment:5
THIS SUCKS!!!!!!!!!!!
I can't believe how annoying it is that plotting graphs is still so totally and completely broken. It is really, really horrible. I don't know how anybody can stand this. Frickin' a. Every single graph plot I try has the borders chopped off. E.g.,
|
comment:6
Fix it! |
comment:7
Warning- I've seen several "fixes" for this go in, and yet it's still borken |
comment:8
See #9211 for progress towards a fix. |
comment:9
Graph vertices are not cut off anymore. The plot in the description has overlapping vertices, though. |
comment:10
This is a dup of #9211. Since the patch is there, and it is already merged, I'm calling this the duplicate. |
This comment has been minimized.
This comment has been minimized.
Reviewer: Jason Grout |
Want to see some truly hideous plotting output? Try this:
I guess the problem is maybe Networkx drawing the plots instead of Sage (??), hence the cropping/layout is wrong? I don't know. Why do we use networkx at all for any part of plotting? It would be better to plot to native Sage primitives, wouldn't it?
Fixed by #9211.
Component: graph theory
Reviewer: Jason Grout
Issue created by migration from https://trac.sagemath.org/ticket/5938
The text was updated successfully, but these errors were encountered: