Any Interactive way to manipulate plot data using python ? - python

Is there any way using python to edit/manipulate a data interactively? That is I want to plot the data and edit the data by dragging the data points in plot by mouse. Is it possible to do this in python?
I want something like this manipulate-chart-data-with-mouse.

I would suggest using dash.
This link gives an example of making an editable plot similar to your requirements.

Related

Does anyone know about a way to save a plotly interactive plot for later without loosing interactivity?

I am trying to generate interactive plots using plotly. So far I have been using pio.renderers.default = 'browser' to create the plot as html and review it interactively. Nevertheless I have a task where I need to generate ~100 charts, and I would like to save them for later and be able to retrieve them for review them interactively without need of running the script again. Can this be possible with plotly?

Is there a way to draw a radar chart with Altair in python?

I have been using the Altair python API for a Data Visualization project, and everything went smoothly until I wanted to add a radar chart to my app.
I could not find anything on Altair's python API documentation about radar charts, however there seems to be an entry about that in Altair's core documentation but I couldn't access it.
I saw that plotly had that feature but I would really have liked using only one plotting framework...
Is there really no way to make a radar chart with Altair in python ?
This is currently not implemented in VegaLite, you can see the discussion in these two issues and open a new one if you think there is a good case to be made for radar charts:
https://github.com/vega/vega-lite/issues/3805
https://github.com/vega/vega-lite/issues/408
In Altair you might be able to hack something together by layering multiple mark_arc charts with a fillOpacity=0 and a colored stroke (although I don't think this will work since I can't see any way to get right of the lines going towards the middle.

Is it possible in Python to create a custom made polygon and use that as arrow to produce a stream plot?

i want to create a plot with 13 different arrow styles for a vector field showing the stream of a sea. I want to use very specific arrows which are not bult in FancyArrowPatch. Is ther a possibility to use a selfmade design as arrow in python ? Is it possible to somehow add custom arrow styles to the FancyArrowPatch function ?
I have attached the image I want to reproduce with Python (taken from bsh.de/DE/DATEN/Stroemungen/stroemungen_node.html):
My best try was to produce this one:
Which is not quite satisfying yet. I would like to have the same arrows as seen in the first image. If you have suggestions how to make the image fancier I am open for that too.

Data cursor on a line plot in python

I am new to python and am looking for a similar feature found in MATLAB. Its called data cursors in signal processing toolbox and I want to use a pre-existing or build a similar one.
The idea is to get a data line which when moved with a mouse and shows the data point of the plotted graph. Linked with the x-axis of the other subplots we can see the data matching of other graphs too.
Is this achievable in python?

Update source data through chart in Python

Is there any way in Python to modify the source data by moving data points in the chart?
This is intended to work in streamlit: I'd like to make it convenient for users to edit multiple parameters of the same kind visually changing the curve which represents series of parameters and their corresponding value. As far as I know, streamlit currently supports Matplotlib, Plotly, Altair, Bokeh, Vega Lite, Deck.GL, dagre-d3 charts, but not sure whether any of those libraries provide this functionality.

Categories

Resources