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:
Tag: plot
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
How to convert this text file into panda tables to make plots?
Here is an image of the text file: Answer Try using pd.read_csv and some parameters: Content of data.csv:
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
model plots – confusion matrix – Accuracy plot
In my code I’m plotting the accuracy curve plot and the confusion matrix heat map. However: 1- I’m getting both plots on one (picture below) 2- Why is the number apering this way ? In my heat map, I need the numbers and the percentages. The code Answer After this row: add a new row:
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
DataFrame: how to draw a 3D graph using Index and Columns as x and y, and data as z?
My DataFrame line index and column index store x and y values, while the data values are z values, i.e. f(x, y). Let’s take an example: then f(4, 30) is 160. I would like to make a 3D plot of function f. I don’t really mind if it looks like a 3D histogram or a surface plot – both answers
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
How do you plot two different y-axes using a loop with twinx?
I have a pandas data frame, region, containing the prices of flats (Flat) and detached properties (Detached) in areas of the UK over time (the column Month). I’m trying to obtain plots of the change in price over time of both flats and detached properties, so that the plots have two different y axes – both of the average price