This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
# A class that will downsample the data if there are too many points to display | |
class DataDisplayResampler(object): | |
def __init__(self, xdata, ydata, max_disp_samples=80): | |
self.origYData = ydata | |
self.origXData = xdata | |
self.max_disp_samples = max_disp_samples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
MWE to bissect issue #7751 | |
====================================== | |
Radar chart (aka spider or star chart) | |
====================================== | |
This example creates a radar chart, also known as a spider or star chart [1]_. | |
Although this example allows a frame of either 'circle' or 'polygon', polygon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,4c2,4 | |
< %%Title: test_bis_1.5.1.eps | |
< %%Creator: matplotlib version 1.5.1, http://matplotlib.org/ | |
< %%CreationDate: Thu Mar 16 10:19:55 2017 | |
--- | |
> %%Title: test_bis_2.0.eps | |
> %%Creator: matplotlib version 2.0.0, http://matplotlib.org/ | |
> %%CreationDate: Thu Mar 16 10:19:13 2017 | |
6c6 | |
< %%BoundingBox: 18 180 594 612 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Based on the pcolor_log example: | |
http://matplotlib.org/examples/pylab_examples/pcolor_log.html | |
More about colormaps here: | |
http://matplotlib.org/users/colormaps.html | |
""" | |
import numpy as np | |
import matplotlib.pyplot as plt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Memo for pprofile: | |
pprofile --out cachegrind.out benchmark_cleverer_legend.py >> profiling.log | |
""" | |
from __future__ import division, print_function, unicode_literals | |
import numpy as np | |
import matplotlib.pyplot as plt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
from matplotlib.gridspec import GridSpec # only for Method 2 | |
# A lot of information about GridSpec can be found here: | |
# https://matplotlib.org/tutorials/intermediate/gridspec.html | |
# Dummy data | |
uu = np.linspace(0, np.pi, 128) | |
data = np.cos(uu - 0.5) * np.cos(uu.reshape((-1, 1)) - 1.0) |