graph-drawing

How to update a graph created by matplotlib in tkinter

别等时光非礼了梦想. 提交于 2021-02-17 05:45:06
问题 I have an app created by using tkinter. There is just a window in which I'm typing X and Y. Having these x and y, my app should create a graph using matplotlib. First time it works correctly, but others no. I mean, I open the app, input X and Y, click button and the app creates graph, then I input new X and Y, click button and this doesn't work, graph is the same, not new. I've searched many sites, but no one of solutions works. a part of code looks like: from tkinter import * import

Reducing the size (as in area) of the graph generated by graphviz

依然范特西╮ 提交于 2019-12-29 02:33:23
问题 Does anyone have any general tips for reducing the size of a graph generated by graphviz (size as in area, not as in file size). I have a fairly large graph (700 nodes). I set a smaller font size for each node, but it seems to only reduce the font size and not the actual node size. Are there any attributes to reduce the overall amount of blank space in the graph also? Thanks! 回答1: In my experience using graphviz to render graphs of that size (~ 700 nodes), minimal trial-and-error adjustment

Reducing the size (as in area) of the graph generated by graphviz

≯℡__Kan透↙ 提交于 2019-12-29 02:33:22
问题 Does anyone have any general tips for reducing the size of a graph generated by graphviz (size as in area, not as in file size). I have a fairly large graph (700 nodes). I set a smaller font size for each node, but it seems to only reduce the font size and not the actual node size. Are there any attributes to reduce the overall amount of blank space in the graph also? Thanks! 回答1: In my experience using graphviz to render graphs of that size (~ 700 nodes), minimal trial-and-error adjustment

Non-convex polygon - preprocess to use convex hull algorithm

强颜欢笑 提交于 2019-12-23 15:30:59
问题 I used the convexHull algorithm to find the contour for some... irregular shape. It is not good enough though... Quite possibly because I can't guarantee that the shape I have is convex... I have a set of rectangles, and I would like to be able to get all points on the outside of the contour - but not throw any of the contour points out. The convex hull algorithm works great - but it works like the example on the right, so I lose some information on the contours. I want something that works

What algorithms are good for interactive/realtime graph-drawing?

末鹿安然 提交于 2019-12-20 15:33:08
问题 What algorithms are good for interactive/realtime graph-drawing for live data and direct-manipulation? Failing that - what libraries do you use to draw graphs? Suggestions; Prefuse information-visualization toolkit any others? BTW- I mean graphs in the graph-theory sense - points and lines any language by live I mean the graph should be manipulatable once on screen. 回答1: I would recommend any library that Jeff Heer has worked on: D3 Protovis Flare Prefuse I believe all three projects are open

JavaFX Transition animation waiting

眉间皱痕 提交于 2019-12-19 05:08:29
问题 so quicky, I am doing program which demonstrate methods used for computer graph drawing. I need to create timeline or history of actions like ( placeVertex(x,y), moveVertex(newX,newY) etc. ) and iterate through (forward and backwards, automatically or manual) I already achieved that by using command design pattern but few of these commands are using transitions. First idea was to use Condition interface's lock, await and signal in setOnFinished between each commands but it led to gui freezing

How to draw a graph in PHP? [closed]

偶尔善良 提交于 2019-12-17 22:19:42
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Hey I want to draw a graph(Stdent mark distribution) in my site based on PHP. How can I do this? 回答1: pChart is another great PHP graphing library. 回答2: <? # ------- The graph values in the form of associative array $values=array( "Jan" => 110, "Feb" => 130, "Mar" => 215, "Apr" =>

How do I use special characters in a dot file node_id?

自作多情 提交于 2019-12-07 10:31:33
问题 I am looking forward to write a script that will automatically take input from a file and declare the nodes and edges, and produce a graph that can be visualized in any visualization software. I tried dot language and graphViz. This language uses grammar which clearly declare the nodes of the graph like this: node1; , node2; and does not allow any special character except _ . It works well in all the cases but when I want to declare a node named java.lang.object it shows grammatical error

How do I use special characters in a dot file node_id?

狂风中的少年 提交于 2019-12-05 16:40:25
I am looking forward to write a script that will automatically take input from a file and declare the nodes and edges, and produce a graph that can be visualized in any visualization software. I tried dot language and graphViz. This language uses grammar which clearly declare the nodes of the graph like this: node1; , node2; and does not allow any special character except _ . It works well in all the cases but when I want to declare a node named java.lang.object it shows grammatical error because of presence of . and I can't change its grammar. Can anyone help me by suggestion some other

Improving graphviz layout

耗尽温柔 提交于 2019-12-04 16:52:39
问题 I have perfection paralysis when it comes to producing something graphic. If symmetries of the visual have not been fully explored, I have a harder time comprehending what is going on. I am a very visual learner as well, and I LOVE to simplify things that I just learned and draw them on paper. Graphviz is a nice tool to draw thing automatically, but it could be better. Let's start with an example of a good graph )a state machine rather). Never mind the quality (it can be redrawn with a better