A diagram that exhibits a relationship, between two sets of numbers as a set of points having coordinates determined by the relationship.
Questions tagged [graphing]
680 questions
97
votes
2 answers
matplotlib set yaxis label size
How can I change the size of only the yaxis label?
Right now, I change the size of all labels using
pylab.rc('font', family='serif', size=40)
but in my case, I would like to make the y-axis label larger than the x-axis. However, I'd like to leave…

zje
- 3,824
- 4
- 25
- 31
93
votes
8 answers
gnuplot vs Matplotlib
I've started on a project graphing Tomcat logs using gnuplot-py, specifically correlating particular requests with memory allocation and garbage collection. What is the
collective wisdom on gnuplot-py vs Matplotlib for Python graphing. Are there…

Ethan Heilman
- 16,347
- 11
- 61
- 88
93
votes
5 answers
Putting newline in matplotlib label with TeX in Python?
How can I add a newline to a plot's label (e.g. xlabel or ylabel) in matplotlib? For example,
plt.bar([1, 2], [4, 5])
plt.xlabel("My x label")
plt.ylabel(r"My long label with $\Sigma_{C}$ math \n continues here")
Ideally I'd like the y-labeled to…
user248237
89
votes
3 answers
Matplotlib - label each bin
I'm currently using Matplotlib to create a histogram:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as pyplot
...
fig = pyplot.figure()
ax = fig.add_subplot(1,1,1,)
n, bins, patches = ax.hist(measurements, bins=50,…

victorhooi
- 16,775
- 22
- 90
- 113
74
votes
6 answers
Matplotlib log scale tick label number formatting
With matplotlib when a log scale is specified for an axis, the default method of labeling that axis is with numbers that are 10 to a power eg. 10^6. Is there an easy way to change all of these labels to be their full numerical representation? eg. 1,…

Nat Dempkowski
- 2,331
- 1
- 19
- 36
64
votes
4 answers
R + ggplot : Time series with events
I'm an R/ggplot newbie. I would like to create a geom_line plot of a continuous variable time series and then add a layer composed of events. The continuous variable and its timestamps is stored in one data.frame, the events and their timestamps are…

Angelo
- 2,936
- 5
- 29
- 44
55
votes
5 answers
How to label scatterplot points by name?
I am trying to figure out how to get labels to show on either Google sheets, Excel, or Numbers.
I have information that looks like this
name|x_val|y_val
----------------
a | 1| 1
b | 2| 4
c | 1| 2
Then I would want my final…

loonyuni
- 1,373
- 3
- 16
- 24
47
votes
4 answers
Setting axes.linewidth without changing the rcParams global dict
So, it seems one cannot do the following (it raises an error, since axes does not have a set_linewidth method):
axes_style = {'linewidth':5}
axes_rect = [0.1, 0.1, 0.9, 0.9]
axes(axes_rect, **axes_style)
and has to use the following old trick…

mlvljr
- 4,066
- 8
- 44
- 61
33
votes
1 answer
What graphing library does GitHub use on its Graphs page?
What graphing library does GitHub use on its Graphs tab? When you navigate to https://github.com/USER/REPOSITORY/graphs/commit-activity the graphs are clean, beautiful, and responsive. If they are using an open source javascript library, I would…

emkman
- 812
- 12
- 21
27
votes
2 answers
Cannot get minor grid lines to appear in matplotlib figure
Ok so I have the code below for real-time graphing some data from an embedded device received over serial. It's not meant to be a production tool but rather an internal eng tool, hence it's not terribly user-friendly. The problem is that no matter…

therealjumbo
- 1,079
- 1
- 10
- 14
22
votes
7 answers
Any examples of Flot with floating tooltips?
I am currently working on a Flot graph, the API which seems pretty powerful overall, although examples of advanced use are not widely documented.
The API suggests there are ways to set hoverable on the graph, not that I am sure what exactly that…

j pimmel
- 11,617
- 6
- 33
- 43
20
votes
2 answers
Graphing slow counters with prometheus and grafana
We graph fast counters with sum(rate(my_counter_total[1m])) or with sum(irate(my_counter_total[20s])). Where the second one is preferrable if you can always expect changes within the last couple of seconds.
But how do you graph slow counters where…

James
- 11,654
- 6
- 52
- 81
19
votes
7 answers
What is a good plotting library for .Net?
I'm writing some data acquisition software and need a gui plotting library that is fast enough to do realtime updated graphs. I've been using Nplot which is pretty good for a free library, but I'm wondering if there are any better libraries…

Luke
- 18,585
- 24
- 87
- 110
18
votes
1 answer
Java plotting library like python's matplotlib
I am looking for a java plotting library that might be as good as matplotlib is for python. I have done some research looking over SO questions, but many of them are outdated and a lot has changed in the few years since they were asked. The…

arynaq
- 6,710
- 9
- 44
- 74
18
votes
1 answer
Use image instead of labels in ggplot2 legend
I have a plot in ggplot2 with, say, 2 lines, and in the legend I have "Sharks" and "Tigers". Is there a way I could have shark/tiger images appear in the legend instead of that text?

nicolaskruchten
- 26,384
- 8
- 83
- 101