mastodon.ie is one of the many independent Mastodon servers you can use to participate in the fediverse.
Irish Mastodon - run from Ireland, we welcome all who respect the community rules and members.

Administered by:

Server stats:

1.6K
active users

#graph

21 posts10 participants3 posts today

I've been spending time wondering why implementing panning/zooming on a polar #graph was so much more fiddly than I expected

#software #engineering: I wasn't expecting so many weird corner cases, so I reacted to them too late. If I rewrote the code, it would probably be simpler

#math: I think this is really the big one. I was talking with one of the kids and they pointed out that a panned/zoomed cartesian graph is just another cartesian graph, but a panned/zoomed polar graph isn't.

(I *think* what they mean is that pan/zoom are affine transforms in a cartesian graph. Even if the axes are sheared, this is still pretty simple. In polar coordinates this isn't true anymore. But maybe "affine" isn't what I mean or care about. Maybe it's more about self-similarity.)

If that is what's going on, I'm not sure what to do with that information.

What if I converted polar into a wrapped cartesian (i.e. cylindrical) graph, panned/zoomed, then converted back...? That probably doesn't help, since the zoombox also has to transform.