Skip to content

Commit

Permalink
#247 fix quickplot
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsulzer committed Feb 19, 2020
1 parent ec948de commit e006b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pybamm/quick_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ def set_output_variables(self, output_variables, solutions):

# Set the x variable for any two-dimensional variables
if first_variable.dimensions == 2:
spatial_variable_key = first_variable.spatial_var_name
spatial_variable_value = first_variable.mesh[0].edges
spatial_variable_key = first_variable.first_dimension
spatial_variable_value = first_variable.first_dim_pts
self.spatial_variable[key] = (
spatial_variable_key,
spatial_variable_value,
Expand Down

0 comments on commit e006b17

Please sign in to comment.