Sorry, something went wrong.
|
I'm not immediately seeing the need for a GraphicFeature here, but I could be wrong? |
Sorry, something went wrong.
|
All aspects of a graphic are managed by a GraphicFeature class and exposed to the user as properties: https://www.fastplotlib.org/ver/dev/developer_notes/graphics.html#graphic-properties Lines also have a thickness_space parameter so this feature can actually be settable with a property of the PositionsGraphic base class. |
Sorry, something went wrong.
There was a problem hiding this comment.
A good start!
This doesn't need to be specific to scatters, pygfx line material also uses a thickness_space property that takes the same args and does an analogous thing so this can be in the PositionsGraphic base class.
Sorry, something went wrong.
There was a problem hiding this comment.
Will also need a simple test when you're done, see this for an outline:
fastplotlib/tests/test_positions_graphics.py
Lines 419 to 445 in f204f55
Sorry, something went wrong.
|
Eye test looks like everything checks out. will work on a test case next |
Sorry, something went wrong.
|
Since you've added/changed the API you will need to regenerate the API docs: in docs/source: delete the api dir with the env activated, run: python generate_api.py add and commit docs/api |
Sorry, something went wrong.
|
black is still unhappy, just do black fastplotlib/ only black format the fastplotlib source dir, not the examples or tests etc. |
Sorry, something went wrong.
Sorry, something went wrong.
|
@kushalkolar I don't even have a guess for why the docs failed Run SamKirkland/FTP-Deploy-Action@v4.3.5 Error: Error: Input required and not supplied: server |
Sorry, something went wrong.
|
I think it's trying to access the credentials which are repo secrets and it won't since you're on a fork, we'll figure out later how to make docs upload from forks. Anyways the docs built without issues so that's fine and everything else LGTM. |
Sorry, something went wrong.
The size_space property of PointsMaterial controls which coordinate space to use for the sizing of each point. Default is screen, which using logical pixel values mapped to the screen. Zooming into a plot causes the thickness of circles to remain the same thickness. see here
This aims to allow the other options of CoordSpace Enum to be used instead (world, model, screen).