Skip to content

Commit 1d18a8c

Browse files
committed
fix plotting bug
1 parent 6183031 commit 1d18a8c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MARBLE/plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def embedding(
277277
ax.set_axis_off()
278278

279279
if cbar_visible and cbar is not None:
280-
plt.colorbar(cbar)
280+
plt.colorbar(cbar, ax=ax)
281281

282282
return ax
283283

examples/toy_examples/ex_vector_field_flat_surface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def main():
5252
data = preprocessing.construct_dataset(x, y)
5353

5454
# train model
55-
model = net(data, params={'inner_product_features': True,
56-
'diffusion': False,})
55+
model = net(data, params={'inner_product_features': False,
56+
'diffusion': False})
5757
model.fit(data)
5858

5959
# evaluate model on data

0 commit comments

Comments
 (0)