Skip to content

Commit

Permalink
Minor revision.
Browse files Browse the repository at this point in the history
  • Loading branch information
ResidentMario committed Feb 14, 2017
1 parent 296c1f8 commit 61e4af8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions missingno/missingno.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import pandas as pd
from mpl_toolkits.axes_grid1 import make_axes_locatable

__version__ = "0.3.3"


def _ascending_sort(df):
"""
Expand Down Expand Up @@ -247,7 +249,7 @@ def matrix(df,
# Set up the sparkline.
ax1.grid(b=False)
ax1.set_aspect('auto')
ax1.set_axis_bgcolor((1, 1, 1))
ax1.set_facecolor((1, 1, 1))
# Remove the black border.
ax1.spines['top'].set_visible(False)
ax1.spines['right'].set_visible(False)
Expand Down Expand Up @@ -343,7 +345,6 @@ def bar(df, figsize=(24, 10), fontsize=16, labels=None, log=False, color=(0.25,

# Start appending elements, starting with a modified bottom x axis.
if labels or (labels is None and len(df.columns) <= 50):
pos = ax1.get_xticks()
ax1.set_xticklabels(ax1.get_xticklabels(), rotation=45, ha='right', fontsize=fontsize)

# Create the numerical ticks.
Expand All @@ -366,7 +367,7 @@ def bar(df, figsize=(24, 10), fontsize=16, labels=None, log=False, color=(0.25,

# Create the third axis, which displays columnar totals above the rest of the plot.
ax3 = ax1.twiny()
ax3.set_xticks(pos)
ax3.set_xticks(ax1.get_xticks())
ax3.set_xlim(ax1.get_xlim())
ax3.set_xticklabels(nullity_counts.values, fontsize=fontsize, rotation=45, ha='left')
ax3.grid(False)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
packages = ['missingno'], # this must be the same as the name above
install_requires=['numpy', 'matplotlib', 'scipy', 'seaborn'],
py_modules=['missingno'],
version = '0.3.2',
version = '0.3.3', # note to self: also update the one is the source!
description = 'Missing data visualization module for Python.',
author = 'Aleksey Bilogur',
author_email = 'aleksey.bilogur@gmail.com',
url = 'https://github.com/ResidentMario/missingno',
download_url = 'https://github.com/ResidentMario/missingno/tarball/0.3.2',
download_url = 'https://github.com/ResidentMario/missingno/tarball/0.3.3',
keywords = ['data', 'data visualization', 'data analysis', 'missing data', 'data science', 'pandas', 'python',
'jupyter'],
classifiers = [],
Expand Down

0 comments on commit 61e4af8

Please sign in to comment.