How to include interactive plotting in scatter plot? - python

I have a scatter plot looking like this:
Each point in this image describes average hardness value taken over 5 points of data, in each batch. So for each point a hardness plot can be generated with the data. I want to know how to code in interactive mode in Python, such that when I hover my mouse to each point, the image of hardness plot will pop up?

Related

Slice plot in vtk

I have a polydata file containing 3D coordinates of the mesh (as vtkPoints) and temperature at each point as an attribute. I want to plot the temperature as a slice plot (at three elevations) over the geometry. I managed to get the data slices at different elevation using vtkClipPolyData function. However, I am unable to find a good example showing how to interpolate the value at each of these points and plot the data. Really appreciate if someone can help me on this.
I tried to render the clipped data directly by increasing the point size from actor property,
actor.GetProperty().SetPointSize(5)
however, this gives a pixelated plot. See plot here

animated plot in python

hope you are doing fine
i want to plotting an animated plot to watch a point go to its specific destination(the point could be a moving car though)
point location has specified with a numpy array that has an x and y in each row.
position_mat(point location) will be updated in each iteration
this animated plot should displayed on an other plot with its nodes and paths, the point will move on this plot.
any other method or thing that can do this work will be considered, thanks.

annotation while hovering over saved matplotlib plots

The amount of data that I need to plot is above 30k points. I'm aware that the hover over functionality is possible for an active graph. But is it possible to display the value of a particular data point when hovered over on saved matplotlib plots?
Are there any other interactive plotters that offer such a functionality for saved plots?

Change the canvas's shape when using Lambert Conformal Projection

With the supporting of matplotlib basemap, I can draw my netCDF files in different kind of projection type.
We always see the figure is in rectangular showing like this:
But I also see some figures showing like:
For now, I have some weather simulation data and I want to represent it on the map with Lambert projection.
The temperature of on time slice shows like:
So, here is my question:
How to generate the figure which the borders of the canvas fit the lcc projection like the previous one using Basemap?

Overlaying subplot on seaborn factorplot

I'm creating a plot with factorplot and then trying to add a subplot on top of each box. How can I get the x-axis locations of each individual box in the factor plot to put another line on top?
Maybe there's a way to get all the x-axis values of each box plot on the axes?
Here's my basic factor plot:
I want to add 1 subplot (the circle) in the middle of each box plot. However, I cannot figure out how to get the x-value of each box to properly space the points.
I see a lot of code for positions and offsets in the seaborn source that lays these out. However, I'm wondering if there is a more straight-forward method to get this information or at least approximate it.
As per #mwaskom's comments, you can use sns.stripplot() (and now also sns.swarmplot()) to include your data points with a data summary plot such as a box or violinplot.

Categories

Resources