Skip to main content

All Questions

Tagged with
1 vote
1 answer
61 views

Adjusting colormaps for geoplotting

I draw some geoplots using cartopy. Using Two Slope Normalisation and "RdBu_r" colormap to plot air temperature field. color_map = 'RdBu_r' fig = plt.figure(figsize=(16, 12)) ax = plt.axes(...
Outlaw's user avatar
  • 347
0 votes
1 answer
34 views

Using a color scheme and legend labels in plot_model

I would like to plot the results of a multilevel model in R, specifically to illustrate an interaction effect, using plot_model from sjPlot. I would like to use a specific color scheme and I would ...
Becky B's user avatar
1 vote
0 answers
13 views

How to plot data points with asymmetric errors, in different colors and with caps

I have written a little python script that read my data from a file, put them in several lists, and use plt.errorbars to plot the points on the lists that I needed. this is the first part of the ...
Sara Peluso's user avatar
0 votes
1 answer
22 views

Problot list of lists with differents colors

I am working on some data which are supposed to follow a normal distribution. I have different sets of samples I'm interested in studying. So the data is stored in a list of lists (each sublist ...
Hélène BRNT's user avatar
1 vote
1 answer
29 views

How do I change the color of the bars in a grouped bar chart?

I have this plot (https://i.sstatic.net/OI4Bb.png) based on the example from matplotlib website: https://matplotlib.org/stable/gallery/lines_bars_and_markers/barchart.html but I have changed it to fit ...
lolloa's user avatar
  • 27
0 votes
0 answers
37 views

How to assign colors and shape for variables in fviz_pca_biplot

I am plotting the PCA using FVIZ_PCA_BIPLOT. My (temp) database has 55 groups, 4250 observations and 19 variables. An example of my df is: temp <- data.frame(ind = c(AZ34, B546, C234, AC765, B498, ...
Johanna Ramirez's user avatar
0 votes
0 answers
16 views

Color Changing Lines/Plots Based on Time

Trying to figure out how to create a line/plot that changes color over time whether its a millisecond, second, and or minute. Example would be red at 12 hrs, 0 mins, 0 seconds and 0 milliseconds (12:...
d3rti's user avatar
  • 1
0 votes
0 answers
30 views

How to control colors in twoway

Say that I have these data: sysuse nlsw88, clear gen hours1 = inrange(hours, 1, 20) replace hours1 = 2 if inrange(hours, 21, 39) replace hours1 = 3 if inrange(hours, 40, 40) replace hours1 = 4 if ...
bill999's user avatar
  • 2,443
0 votes
0 answers
44 views

Ggplot: buggy fill and colour legends for shapes pch=21:25

I'm trying to make a scatterplot with dynamic variables for x, y, shape, shape fill, and shape colour (aka border/stroke), when using shape pch 21:25 (those shapes with fills and borders). Colour/fill ...
dez93_2000's user avatar
  • 1,833
0 votes
1 answer
89 views

Creating a colormap in Python with a specific transition between two regions

I am trying to create a colormap in Python for coloring a map of the world. As such, I want there to be a distinct difference in color between ocean and land, and I am trying to create a colormap for ...
Marcus K.'s user avatar
  • 353
0 votes
1 answer
342 views

How to define custom color ramps for specifically defined, continuous intervals in R (ggplot)

I'm trying to create a plot in which I can customize the color ramp to have exact colors at particular threshold values, and I want to define the color transition/ramp between thresholds. For instance,...
Lewkrr's user avatar
  • 420
0 votes
0 answers
54 views

In karyoploteR, how can I color specific cytobands based on their names?

I would like to ask for some help in using karyoploteR. I am trying to plot some custom genomes with custom cytobands. I want to color each region based on the names. Unfortunately, I was not ...
Tyler Ruddenfort's user avatar
0 votes
0 answers
47 views

Stacked bar plot with gradient colors for each bar [duplicate]

I have made a stacked bar plot. I have tried to change three things to improve readability without luck - I am looking for suggestions for code that actually does this. I have only found javascript ...
tribolil's user avatar
0 votes
0 answers
29 views

Can a horizontal bar chart colour be mapped to the magnitude of a vector in Python?

I would like to know if Python can be used to create a horizontal bar plot which is coloured based on the magnitude of a vector. Specifically, I would like to create a function which takes two vectors ...
CapnJackSparrow's user avatar

15 30 50 per page
1
2 3 4 5
43