Skip to content

Commit e9142f8

Browse files
committed
remove matplotlib rc modification
1 parent 669d5c3 commit e9142f8

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

hydrodata/datasets.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import xarray as xr
1414
from shapely.geometry import Polygon
1515

16-
from hydrodata import helpers, services, utils
16+
from hydrodata import connection, helpers, services, utils
1717
from hydrodata.connection import RetrySession
1818
from hydrodata.services import WFS
1919

@@ -817,7 +817,6 @@ def ssebopeta_byloc(lon, lat, start=None, end=None, years=None):
817817
xarray.DataArray
818818
The actual ET for the requested region.
819819
"""
820-
from hydrodata import connection
821820

822821
f_list = utils.get_ssebopeta_urls(start=start, end=end, years=years)
823822
session = RetrySession()
@@ -895,7 +894,7 @@ def ssebopeta_bygeom(
895894

896895
session = RetrySession()
897896

898-
with utils.onlyIPv4():
897+
with connection.onlyIPv4():
899898

900899
def _ssebop(url_stamped):
901900
dt, url = url_stamped

hydrodata/plot.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
Plots includes daily, monthly and annual hydrograph as well as
55
regime curve (monthly mean) and flow duration curve.
66
"""
7-
import matplotlib as mpl
87
import matplotlib.pyplot as plt
98
import pandas as pd
109
from matplotlib.colors import BoundaryNorm, ListedColormap
@@ -53,7 +52,6 @@ def signatures(
5352
the plot is not saved to a file.
5453
"""
5554
pd.plotting.register_matplotlib_converters()
56-
mpl.rcParams["figure.dpi"] = 300
5755

5856
if not isinstance(daily_dict, dict):
5957
raise TypeError("The daily_dict argument should be a dictionary.")

tests/test_hydrodata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def test_newdb():
193193

194194

195195
def test_plot():
196-
utils.interactive_map([-70, 44, -69, 46])
196+
hds.interactive_map([-70, 44, -69, 46])
197197
wshed = Station(station_id="01031500")
198198
start, end = "2000-01-01", "2009-12-31"
199199
qobs = hds.nwis_streamflow(wshed.station_id, start, end)

0 commit comments

Comments
 (0)