Commit 512ae79a authored by Leo Pound Singer's avatar Leo Pound Singer

Change import style

parent ac756761
......@@ -97,7 +97,7 @@ from matplotlib.projections import projection_registry
import numpy as np
from reproject import reproject_from_healpix
from scipy.ndimage import gaussian_filter
import scipy.optimize
from scipy.optimize import minimize_scalar
from .angle import reference_angle_deg
__all__ = (
......@@ -568,7 +568,7 @@ class ScaleBar(FancyArrowPatch):
self._length = length
self._transAxesToWorld = (
(ax.transAxes - ax.transData) + ax.coords.frame.transform)
dx = scipy.optimize.minimize_scalar(
dx = minimize_scalar(
self._func, args=xy, bounds=[0, 1 - x], method='bounded').x
super(ScaleBar, self).__init__(
xy, (x + dx, y),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment