zyy · Stack Overflow

Score of 3

1 answer

123 views

How to draw a radial axis in polar coordinate with matplotlib?

I am using ax.pcolor() to create a plot in polar coordinates, and I would like to add a radial axis-like line at a fixed angle (e.g., 250 degrees). Specifically, I would like the axis-like line to: ...

  • reputation score 1694

Score of 2

2 answers

271 views

Trying to Change A Pixel in Python

I'm trying to change a pixel to red. However, when I run the code, the pixel remains unedited. Can you help? import cv2 as cv import os import matplotlib.pyplot as plt def readAndWriteImage(): ...

  • reputation score 39

Score of 4

2 answers

180 views

How can I boxplot values that wrap around using matplotlib?

I want to show the distribution of angle estimations using a boxplot. The problem is that angles wrap around (I chose +-180° as the wrapping point, but the same applies to 0/360°). Matplotlibs boxplot ...

  • reputation score 926

Score of 2

1 answer

120 views

Plot grid shifted against data points

I have defined a plotting method (in a class, where self.steps is a list of lists of dictionaries, containing different "feature": value associations. Also self.path_alignments here is a ...

  • reputation score 43

Score of 0

1 answer

105 views

Data Labels on Matplotlib and Saving graph to a pptx

I was creating visuals/graph using matplotlib. So far, I need to create a data labels with the follow data sample. cellvalue1 = [1,2,3,4,5,6,7,8,9,10,11,12,13] cellvalue2 = [1,2,3] fig, ax = plt....

  • reputation score 51

Score of 4

1 answer

97 views

Same legend label for different plot in a same graph

import numpy as np import matplotlib.pyplot as plt x = np.linspace(1, 6, 10) plt.figure() for i in range(10): T = i + 20 Fit = 4 * x - ( 2 + i) noise = np.random.normal(loc=0, scale=1.0, ...

  • reputation score 77

Best practices

2 votes

3 replies

111 views

Approach to graphing with matplot

So I have the following problem: I have several pandas Series's which I want to graph using matplotlib's subplot. I came up with the following code items = [expcat, inccat, expmonth, incmonth] fig, ...

  • reputation score 1

Tooling

1 vote

3 replies

125 views

Colorbar not completely filled

I have a contour plot here with data that ranges from 10 to 60 ish but i need the colorbar to show from 0 to 330 (for comparison with a similar plot), I've had a few python classes but its been mostly ...

  • reputation score 1

Score of -1

2 answers

117 views

Why can't I turn off legend warnings in Matplotlib?

Does anyone know why this isn't working? plot.py: 355 logging.getLogger('matplotlib.legend').setLevel(logging.ERROR) 356 plt.set_loglevel("error") 357 plt.legend() I'm getting this:...

  • reputation score 2114

Read the original on stackoverflow.com ↗