good chemistry is complicated,and a little bit messy -LW PerlMonks

### Re^2: Seeking A Scaling Equation

by jthalhammer (Friar)
 on Jul 25, 2013 at 22:25 UTC ( #1046432=note: print w/replies, xml ) Need Help??

in reply to Re: Seeking A Scaling Equation
in thread Seeking A Scaling Equation

Very clever. I didn't think in terms of how much space each node occupied along the circumference. That approach will give me the radius that minimizes the circumference whilst keeping the nodes legible. Which is definitely better than what I had.

But what I really want is non-linear scaling. So as the number of nodes becomes smaller, the space between them bigger. And the opposite is true when the number of nodes gets larger.

I can easily cap the upper limit on the radius so that the graph doesn't go off the screen (although the nodes may start to overlap, which is ok at that point). But I need the lower limit on the radius to converge on some constant so that a small number of nodes aren't packed together so tightly.

Does that make sense?

Replies are listed 'Best First'.
Re^3: Seeking A Scaling Equation
by BrowserUk (Pope) on Jul 25, 2013 at 23:22 UTC
But I need the lower limit on the radius to converge on some constant so that a small number of nodes aren't packed together so tightly.

Calculate the radius per above and then if its less than 100 (or whatever you settle on ) set it to 100.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
Calculate the radius per above and then if its less than 100 (or whatever you settle on ) set it to 100.

That's pretty much what I ended up with. I just defined a couple threshold values to set the minimum and maximum allowable radius.

Initially, I thought I would do something clever that scaled progressively according to the number of nodes. But this is much simpler, and looks good enough.

Thanks for your help. Have a great weekend.

Create A New User
Node Status?
node history
Node Type: note [id://1046432]
help
Chatterbox?
 [1nickt]: choroba Understood. I'm wondering about the logic in a cpanfile. If the perl doesn't support threads, it's easy: require MCE. If the perl does support threads, as you say the user has a choice, so require both? Or, assume that irrespective of the choide [1nickt]: ... choice, the threaded-perl user *probably* wants to use threads, therefore only require threads and leave MCE out, allowing the user to manually install if desired? [choroba]: just require any of MCE and threads. Not sure if that's possible in the cpanfile, but should be possible early in the Makefile [1nickt]: The app expects threads as default anyway, right? [choroba]: that's true [1nickt]: expects threads *to be* the default [1nickt]: I think cpanfile can handle the logic. testing now.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (14)
As of 2017-10-18 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
My fridge is mostly full of:

Results (244 votes). Check out past polls.

Notices?