mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-11-13 01:33:55 +01:00
added 1d scatter plot and test
This commit is contained in:
1 parent
e76b18b38f
commit
168096abbe
2 files changed
+23
-6
No files matched your search
@@ -9,7 +9,12 @@ import torch as t
|
||||
import scipy.misc
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
|
||||
def test_plot_1d(show_plot):
|
||||
# Plot simple linear scatter plot
|
||||
arr = np.arange(10)
|
||||
plotting.plot_1d(arr, title = 'Linear Plot')
|
||||
if show_plot:
|
||||
plt.show()
|
||||
|
||||
def test_plot_amplitude(show_plot):
|
||||
# Test with tensor
|
||||
|
||||
Reference in new issue
Block a user