Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions odp/Plots/plotting_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
from odp.Grid import Grid
import numpy as np

def visualize_plots(V, grid, plot_option):
# Only plots last value array for now
if plot_option.plot_type == "set":
plot_isosurface(grid, V, plot_option)
elif plot_option.plot_type == "value":
plot_valuefunction(grid, V, plot_option)
return

def plot_isosurface(grid, my_V, plot_option):

dims_plot = plot_option.dims_plot
Expand Down Expand Up @@ -552,12 +560,4 @@ def downsample(g, data, scale):

return g_out, data_out

def visualize_plots(V, grid, plot_option):
# Only plots last value array for now
if plot_option.plot_type == "set":
plot_isosurface(grid, V, plot_option)
elif plot_option.plot_type == "value":
plot_valuefunction(grid, V, plot_option)

return

Loading