u/Metalprof

automating labels on contours?
▲ 4 r/desmos

automating labels on contours?

To get ready for a new semester I would like to make it easier to plot contours and lines involved in constrained optimization problems, like the one in this picture. (The "find the max or min of f(x,y) subject to the constraint g(x,y) = const" sorts of problems.)

I did this manually, generating the contours "f(x,y)=c" using a parameter, but then creating and placing the labels of "c" manually, one by one. Ick. This is terribly inefficient. Has anyone cracked the case of plotting a set of curves "f(x,y) = c" and then also coding in the labeling of the curves with the associated values of "c" in a good place? And would you be willing to share? Here's a link to my primitive caveman set up of this image as-is.

https://www.desmos.com/calculator/5ff13796ed

u/Metalprof — 1 day ago

I don't know anything about trains, but this seems a fun thing to catch a glimpse of. The world's largest working stream locomotive will roll by (either near or through Valpo) on Friday June 5.

https://www.up.com/about-us/history/steam/schedule

The large scale map of the rail lines don't make it clear whether the train will be on the CX tracks that go through town or will cut by to the north, but it will be going from South Holland IL to Argos IN. Someone with actual knowledge of trains can help out.

I imagine this would be a hoot for a lot of kids, too.

u/Metalprof — 15 days ago