Category "plot"

Sage math plotting points in bigger sizes problem

How can plot a function with different point sizes? f=[(k,k*sin(k^2)) for k in range(1,101)] # size=[(i) for i in range(0,101)] p=points(f, pointsize=5, color=

Converting character to date turning all dates to NA & x-axis of ggplot not in chronological order [duplicate]

I am using an online ONS dataset of inflation and trying to chart it, but when plotting it with ggplot the x-axis is not in chronological orde

Problem with my code- Univariate regression plot not showing lines

this will sound very basic, but I cannot find the solution to this problem with my code. I did a univariate regression (regr1) between the 2 variables immigrate

ValueError: num must be 1 <= num <= 5, not 0 error

I am stuck with this code written in py2 on psychopy. I am not an expert with coding. I am trying to run the function "analyzeStaircases(stairs, stairInfo['Aver

Excluding values from surf plot

Suppose we have a surf plot like this: A = round(peaks,0); surf(A) Is there any way to modify the colormap so that it excludes all values in A that are equal t

How do I plot my datetime on the x axis when this value is used as index?

I have a short question. This is my dataframe: gradient result date 2022-04-15 09:43:20 0.206947 0.10

How can I plot the intercept and coefficient of my LMM with 95% confidence interval over spagetti plots in R?

To visualize the results of my linear mixed model (LMM) I would like to plot spagetti plots that track the change in volume1 over time for all participants. I w

GraphPlots - Is there a way to have different colors for edges?

Given GraphPlots doc, we have the following available attributes: function gplot{V, T<:Real}( G::AbstractGraph{V}, locs_x::Vector{T}, locs_y::Vector{

Python: How to construct a joyplot with values taken from a column in pandas dataframe as y axis

I have a dataframe df in which the column extracted_day consists of dates ranging between 2022-05-08 to 2022-05-12. I have another column named gas_price, which

Matplotlib graph with multiple y axis shows and doesn't save

I am plotting a graph with 3 y axis, and it shows in the plot window of Spyder instead of saving correctly in a folder. The graph saved in a folder is blank. He

How to embed an image in to a cell of a Plotly go table?

I've seen here that you can use DashTable to allow Markdown in a plotly table like so, app.layout = Div([ DataTable( columns=[ dict(name

Plot three way interaction with 3d graph

I have fitted a binominal logistic glm with a three-way interaction between sex (male & female), tree cover including a quadratic term (1-100%), and the mea

Inconsistent indexing of subplots returned by `pandas.DataFrame.plot` when changing plot kind

I know that, this issue is known and was already discussed. But I am encountering a strange behaviour, may be someone has idea why: When I run this: plot = df.p

Plot multiple columns side by side

I have the dataframe below. 111_a 111_b 222_a 222_b 333_a 333_b row_1 1.0 2.0 1.5 2.5 1.0 2.5 row_2 1.0 2.0 1.5 2.5 1.0

In R - How do I plot the data from the row where the date=='"2020 Q1' to the last row of the dataframe?

example of the data: Date Inflation 2020 Q1 2 2020 Q2 2.1 2020 Q3 2 2020 Q4 2.1 I am using ggplot ggplot(CPI,aes(x=date,y=inflation,group=1))+geom_line() but

How to plot the accuracy and and loss from this Keras CNN model? [duplicate]

The code below is for my CNN model and I want to plot the accuracy and loss for it, any help would be much appreciated. I want the output to

Linear graphics

I have a dataset in this way: maximum <- c(10) #for each time minim <- c(2) #for each time Quantity c(4, 2, 10, 2, 10, 6, 2) How can I structure my datas

How to plot skew network data?

Using plot.igraph(), I have created a network graph using the following code: V(g)$color <- "orange" V(g)[name %in% data.set[[1]] ]$color <- "lightblue"

Create multiplot with map and scatter

I am trying to create multiplot that contains a map (using geom_sf) and a graph next to each other. I tried to use GGpubr::ggarrange and cowplot::plot_grid for

Is there is an equivalent of R's GGally::ggpairs function in python?

GGally::ggpairs function provides support for both numeric and categorical datatypes, making it possible to see the interactions between all variables in one pl