Skip to content

Commit

Permalink
Set visible with spines (arviz-devs#559)
Browse files Browse the repository at this point in the history
* Use set_visible with spine

* Use False inplace of 0

* try with https

* Use pip 18.1
  • Loading branch information
ahartikainen authored Jan 22, 2019
1 parent 33774a1 commit a1e8124
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arviz/plots/densityplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,5 +304,5 @@ def _d_helper(
ax.set_yticks([])
ax.set_title(vname, fontsize=titlesize, wrap=True)
for pos in ["left", "right", "top"]:
ax.spines[pos].set_visible(0)
ax.spines[pos].set_visible(False)
ax.tick_params(labelsize=xt_labelsize)
2 changes: 1 addition & 1 deletion arviz/plots/forestplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def plot_forest(

for loc, spine in ax.spines.items():
if loc in ["left", "right"]:
spine.set_color("none") # don't draw spine
spine.set_visible(False)

if len(plot_handler.data) > 1:
plot_handler.make_bands(ax)
Expand Down
8 changes: 4 additions & 4 deletions scripts/create_testenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ fi


# Install ArviZ dependencies
pip install --upgrade pip
pip install --upgrade pip==18.1

# Pyro install with pip is ~511MB. These binaries are ~91MB, somehow, and do not
# break the build. The first is the Python 3.5 wheel, the second is 3.6.
if [ "$PYTHON_VERSION" = "3.5" ]; then
pip --no-cache-dir install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp35-cp35m-linux_x86_64.whl
pip --no-cache-dir install https://download.pytorch.org/whl/cpu/torch-0.4.1-cp35-cp35m-linux_x86_64.whl
else
pip --no-cache-dir install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-linux_x86_64.whl
pip --no-cache-dir install https://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-linux_x86_64.whl
fi

if [ "$PYSTAN_VERSION" = "latest" ]; then
Expand All @@ -70,4 +70,4 @@ fi

# Install editable using the setup.py
pip install --no-cache-dir -r requirements.txt
pip install --no-cache-dir -r requirements-dev.txt
pip install --no-cache-dir -r requirements-dev.txt

0 comments on commit a1e8124

Please sign in to comment.