NOAA-GSL / pygraf

ADB's Python graphics package
MIT License
10 stars 11 forks source link

Initial changes for scatter plot capability. #161

Closed Brian-Jamison closed 1 year ago

Brian-Jamison commented 2 years ago

Please note that this PR is intended for discussion only. It will not pass pylint or pytest, and won't be merged.

I'm pushing this PR, complete with all my dirty laundry laying around. I was finally successful in getting the plot to come out with adjusted sizes for the dots. I realized that the values themselves were being used to scale the size, with the help of a default algorithm. These are adjusted by adjusting the values in the array in the _plot_field function. For some reason, I can only get the scatter function to accept named Matplotlib colors. I matched them as closely as I could to the actual colormap.

Here's an example: image

christinaholtNOAA commented 1 year ago

@Brian-Jamison Should we close this one since you've opened #171?

christinaholtNOAA commented 1 year ago

Reopened as PR #171