Skip to content

Commit 12410e1

Browse files
DLDonaldsonclaytonpbarrows
authored andcommittedJun 5, 2020
Update source_data_to_pp.py
Fixed typo in the reference to "plt.cmap_continuous" i.e pandapower.plotting.cmap_continuous, which was misspelled in the file, leading to errors.
1 parent 82a16a4 commit 12410e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎RTS_Data/FormattedData/pandapower/source_data_to_pp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def plot_net(net, ax=None):
3333
fig, ax = plt.subplots(1, 1)
3434

3535
# create plot collection to visualize results
36-
cmap, norm = plt.cmap_continous([(0.9, "blue"), (1.0, "green"), (1.1, "red")])
36+
cmap, norm = plt.cmap_continuous([(0.9, "blue"), (1.0, "green"), (1.1, "red")])
3737
collections.append(plt.create_bus_collection(net, size=bus_size, cmap=cmap, norm=norm))
38-
cmap, norm = plt.cmap_continous([(0., "green"), (50., "yellow"), (100., "red")])
38+
cmap, norm = plt.cmap_continuous([(0., "green"), (50., "yellow"), (100., "red")])
3939
collections.append(plt.create_line_collection(net, use_bus_geodata=True, linewidth=1., cmap=cmap, norm=norm))
4040
collections.append(plt.create_trafo_collection(net, size=trafo_size, color="green", alpha=.5))
4141
collections.append(plt.create_ext_grid_collection(net, size=ext_grid_size, orientation=1.5))

0 commit comments

Comments
 (0)