Skip to content
Advertisement

Tag: plot

Change title font size in Plotly

I’m trying to update the title font size on my plot using the Plotly library, but it doesn’t works. This is how I defined my layout: It correctly set the the title and the shapes, but not the font size. Answer I think you can set the title font size using a dictionary:

Merge dataframes with mirrored values

I have a dataframe which stores measurement points of an circular area. So each point has a Radius_mm and Angle_deg value. As a visual representation of the data, I would now like to create a section through the surface. I.e. I choose one angle and the corresponding angle that lies at 180° to it, including the center. The x-axis should

Changing plot title through loop

I am new to python and need your help. I have several dataframes. Each dataframe is for one day. So I am using for loop to plot for all dataframe. For each plot I want to add the date in my title. Can anyone help me. I have created a variable ‘date_created and assigned the dates which I want. I

How to plot spheres in 3d with plotly (or another library)?

I am struggling with plotting something, that I thought should be really simple. I have a dataframe/table df that contains the coordinates x,y,z of spheres. Additionally, in a separate column, it contains the radius of these spheres. How can I make with plotly a 3d plot of the spheres in space with their correct radius being used? The closest I

Create a third curve from other two using python

I have two lists of xy coordinates, which I use to plot two curves. I’m interested in the area above the curves, so I used fill_between to arrive at this: Now, what I want is a way to get the coordinates that were not covered by the colored areas, so I can then plot a third curve like the red

How to plot a dataframe column of lists as horizontal lines

I have a Dataframe with the column ‘all_maxs’ that could have a list of different values. Current Result I need to plot column ‘c’, and the values of column ‘all_maxs’ that should be horizontal lines. Expected Result Answer Verify the ‘all_maxs’ values are list type. Extract values from the lists and plot them as horizontal lines. df = df.dropna() if

Advertisement