Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydata/xarray
/ line
Method
line
xarray/tests/test_dataarray.py:5064–5067 ·
view source on GitHub ↗
(x, a, b)
Source
from the content-addressed store, hash-verified
5062
5063
# nonsense function to make the optimization fail
5064
def
line(x, a, b):
5065
if
a > 10:
5066
return
0
5067
return
a * x + b
5068
5069
da = DataArray(
5070
[[1, 3, 5], [0, 20, 40]],
Callers
15
plot_lines_from_2d.py
File · 0.45
test_infer_line_data
Method · 0.45
test_2d_line
Method · 0.45
test_2d_line_accepts_legend_kw
Method · 0.45
test_2d_line_accepts_x_kw
Method · 0.45
test_2d_line_accepts_hue_kw
Method · 0.45
test_2d_coords_line_plot
Method · 0.45
test_2d_coord_line_plot_coords_transpose_invariant
Method · 0.45
test_format_string
Method · 0.45
test_nonnumeric_index
Method · 0.45
test_primitive_returned
Method · 0.45
test_plot_nans
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected