Skip to content

Commit

Permalink
first test problem plots
Browse files Browse the repository at this point in the history
  • Loading branch information
vedantdhruv96 committed Oct 21, 2024
1 parent f3c2bdd commit 0e86f64
Show file tree
Hide file tree
Showing 3 changed files with 382 additions and 29 deletions.
280 changes: 280 additions & 0 deletions scripts/tutorial/.ipynb_checkpoints/tutorial-checkpoint.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions scripts/tutorial/analysis/plot_anisotropic_conduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def run_parallel(function, dlist, nthreads):


# Function to overlay field lines
# Argument must be axes object, B1, B2 and 'nlines' -> a parameter to account for density of field lines
# Argument must be axes object, dump, and 'nlines' -> a parameter to account for density of field lines
def plotting_bfield_lines(ax, dump, nlines=20):
B1 = np.squeeze(dump['B1'])
B2 = np.squeeze(dump['B2'])
Expand Down Expand Up @@ -95,8 +95,8 @@ def plot(dumpno):
ax1.set_xticklabels([0,0.25,0.5,0.75,1])
ax1.set_yticks([0,0.25,0.5,0.75,1])
ax1.set_yticklabels([0,0.25,0.5,0.75,1])
ax1.set_xlabel('$x (GM/c^2)$')
ax1.set_ylabel('$y (GM/c^2)$')
ax1.set_xlabel('$x$')
ax1.set_ylabel('$y$')
ax1.set_aspect('equal')
divider = make_axes_locatable(ax1)
cax = divider.append_axes("right", size="5%", pad=0.05)
Expand Down
125 changes: 99 additions & 26 deletions scripts/tutorial/tutorial.ipynb

Large diffs are not rendered by default.

0 comments on commit 0e86f64

Please sign in to comment.