Comments (7)
this is related to #70
from proofofconcept.
added a "linear index" float value to each step within a derivation; this could be leveraged for orientation in d3js
from proofofconcept.
In graphviz, pin node that has the lowest "linear index" to the top of the graph. If necessary, pin the highest "linear index" to the bottom of the graph.
https://stackoverflow.com/questions/8309201/graphviz-fixed-node-positions
https://graphviz.gitlab.io/_pages/doc/info/attrs.html#d:pin
https://observablehq.com/@magjac/placing-graphviz-nodes-in-fixed-positions
from proofofconcept.
Example derivations where this is relevant:
- Euler equation proof
from proofofconcept.
In a large graph I added a single pos
to one node
1337934 [shape=invtrapezium, color=blue, label="",image="/home/appuser/app/static/declareinitialexpr.png",labelloc=b, pos="0,0!"];
and then ran
neato -Tpng graphviz.dot -o newgraph.png
That didn't work, probably because neato
wasn't looking for positions. I also tried an explicit pin,
1337934 [shape=invtrapezium, color=blue, label="",image="/home/appuser/app/static/declareinitialexpr.png",labelloc=b, pos="0,0!", pin=true];
but that didn't alter the layout. When I told neato to look for positions, I get an error because only one has pos
neato -n -Tpng graphviz.dot -o newgraph.png
Error: node 5427510 in graph physicsDerivation has no position as required by the -n flag
Then I added pos="0,0"
to all the other nodes. The neato -n
worked but the graph was unreadable (and the one static 0,0!
didn't seem to take effect).
from proofofconcept.
I can get node positions to change if I use non-negative coordinate values, e.g., pos="2,1!", pin=true
I pinned the first and last inference rules but the layout was not improved
from proofofconcept.
from proofofconcept.
Related Issues (20)
- Create latex package available on ctan
- derivation: Darcy weisbach
- derivation: Kozny-Carman
- derivation: Molecular dynamics
- associate allofphysics.com with a web server HOT 2
- https://allofphysics.com needs a certificate HOT 1
- Which derivations involve these symbols or operators?
- survey of property graph software HOT 6
- Specify required version of docker compose in the README HOT 3
- same robots.txt for two domains HOT 2
- investigate alternative VPS providers
- list of expressions in derivation table on webpage not listed in order
- remove duplicate entries from "shares expressions with" on list of derivations webpage
- semantic equation matching during manual entry of equations in new derivations HOT 2
- which derivations are relevant for spanning Physics? HOT 3
- restructure the design decisions page HOT 1
- narrower text on frontpage and navigation
- sympy requires antlr 4.11 HOT 2
- separate property graph web interface into new repo HOT 1
- separate web backend iterations into repos HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proofofconcept.