add size_space to pygfx.PointsMaterial scatter kwargs#689
add size_space to pygfx.PointsMaterial scatter kwargs#689kushalkolar merged 19 commits intofastplotlib:mainfrom
size_space to pygfx.PointsMaterial scatter kwargs#689Conversation
|
I'm not immediately seeing the need for a |
|
All aspects of a graphic are managed by a Lines also have a |
kushalkolar
left a comment
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.
kushalkolar
left a comment
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
|
Eye test looks like everything checks out. will work on a test case next |
|
Since you've added/changed the API you will need to regenerate the API docs: in delete the with the env activated, run:
add and commit |
|
black is still unhappy, just do only black format the |
|
@kushalkolar I don't even have a guess for why the docs failed
|
|
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. |

The
size_spaceproperty of PointsMaterial controls which coordinate space to use for the sizing of each point. Default isscreen, which using logical pixel values mapped to the screen. Zooming into a plot causes the thickness of circles to remain the same thickness. see hereThis aims to allow the other options of CoordSpace Enum to be used instead (world, model, screen).