question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use a standard coordinate system by default

See original GitHub issue

By default, the top of the frame is at y=8.0 (see L61 in config.py). Why should this be the case? The choice of 8.0 seems arbitrary. A more standard choice would be to set the range of the vertical axis to be either (-frame_width, frame_width) or (-1.0, 1.0), but not (-8.0, 8.0).

Of course, any choice will be somewhat arbitrary, but some are more natural than others. In fact, matplotlib supports the usage of many different scales, see here.

EDIT: To be clear, there are two issues mentioned here.

  1. The choice of 8.0 seems very arbitrary and (I think) should be changed. @PgBiel suggests that it could be made customizable through the config system. I agree. This is an easy PR.

  2. I’d be great to support multiple coordinate systems, like matplotlib. This is a more substantial PR.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
yoshiaskcommented, Sep 4, 2020

I’d like to point out that a more standard coordinate system would help devs attempting to build graphical editors for Manim (like myself), because we’d only have to scale the coordinates on objects instead of doing weird and buggy calculations to effectively move the origin.

1reaction
PgBielcommented, Aug 13, 2020

Might be easier to have some class like

Unit(30, "px")

Also, regarding the max coords, those should probably be customizable

Read more comments on GitHub >

github_iconTop Results From Across the Web

Specifying a coordinate system—ArcMap | Documentation
To see if your data source has a coordinate system defined, right-click the layer in the ArcMap table of contents, and click Properties...
Read more >
Default coordinate systems - IBM
Default coordinate systems. By default, Analyst's Notebook Connector for Esri defines a number of projected coordinate systems.
Read more >
Coordinate systems - CSS: Cascading Style Sheets | MDN
This guide describes the standard coordinate systems used by the CSS object model. These are generally only different in terms of where ...
Read more >
Where can I specify the standard coordinate system...
I want the standard coordinate system to be EPSG:2056 CH1903+ / LV95 and coordinates should be shown on mouse movement on the map....
Read more >
Is it possible to redefine default coordinate system and change ...
Untitled. · If you want your start part to use a coordinate system with a different orientation, you can define your datum planes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found