Compare commits

..

No commits in common. "8e6adb726bf0089f28279f8db92ab3f72e57915b" and "d88dbb25728262628236d49a29ca9977c36e9f6f" have entirely different histories.

6 changed files with 20 additions and 17 deletions

18
cy.py Normal file
View File

@ -0,0 +1,18 @@
from cycler import cycler
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 2 * np.pi, 50)
offsets = np.linspace(0, 2 * np.pi, 4, endpoint=False)
yy = np.transpose([np.sin(x + phi) for phi in offsets])
plt.rc("axes", prop_cycle=cycler(linestyle=["-", "--", ":", "-."]))
# fig, (ax0, ax1) = plt.subplots(nrows=2)
plt.plot(yy)
# ax0.set_title("Set default color cycle to rgby")
# Add a bit more space between the two plots.
# fig.subplots_adjust(hspace=0.3)
plt.show()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -1,9 +1,9 @@
"""Module to fetch and graph adoption of Python releases.
"""
import argparse
import calendar
import sqlite3
import sys
from datetime import datetime, timedelta, date
from collections import defaultdict
from itertools import cycle, count
@ -188,19 +188,8 @@ def plot_pct():
plt.savefig("python-versions-pct.png")
def parse_args():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
"--fetch",
action="store_true",
help="Fetch more data instead of just displaying them",
)
return parser.parse_args()
if __name__ == "__main__":
args = parse_args()
if args.fetch:
if "--fetch" in sys.argv:
fetch_main()
plot_pct()
plot_main()

Binary file not shown.

View File

@ -1,4 +0,0 @@
pandas
pypinfo
matplotlib
scipy