mohass98 / pyqtgraph

Fast data visualization and GUI tools for scientific / engineering applications
https://www.pyqtgraph.org
Other
0 stars 2 forks source link

Enhancing Plot Interactivity by Adding Color Customization for Curves and Data Points #7

Open Silas-K opened 2 months ago

Silas-K commented 2 months ago

Description

We want to introduce a feature that allows users to change the colors of curves and data points (brush and/or fill) directly through context menus in a plot. This enhancement aims to provide a more interactive and customizable plotting experience, catering to different user preferences and improving visual clarity for presentations or data analysis.

Current Behavior

Currently, users cannot modify the colors of curves and data points (brush/fill) through the context menu. The colors are set to default values and can only be changed within the code or through external settings.

Expected Behavior

Users should be able to right-click on a curve or data point in the plot to access a context menu. From the menu, they should have options to:

The color changes should be applied immediately upon selection and should remain effective until the plot is reset or the application is closed.

This feature will enhance the usability of the plotting interface, allowing users to customize the visual appearance of plotted data dynamically.

Silas-K commented 2 months ago

First approach in d93dc9f

Affected areas:

PlotCurveItem

ScatterPlotItem

Challenges

mohass98 commented 2 months ago

Hey @Silas-K, i added some documentation to your new methods. You can see it in Commit ea9ae39.

Silas-K commented 2 months ago

Thanks @mohass98 for the documentation, appreciate it.

I've opened Issue pyqtgraph/pyqtgraph#3081 in the original repo to propose implementing this feature.

[!NOTE] I believe input from the maintainers is necessary to move forward.