Skip to content

Commit

Permalink
Merge pull request #66 from cjwcommuny/master
Browse files Browse the repository at this point in the history
plot-examples: Use raw string for y-axis label
  • Loading branch information
garrettj403 committed Nov 6, 2022
2 parents f14033a + be9891d commit e3b0a26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/plot-examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def model(x, p):
return x ** (2 * p + 1) / (1 + x ** (2 * p))


pparam = dict(xlabel='Voltage (mV)', ylabel='Current ($\mu$A)')
pparam = dict(xlabel='Voltage (mV)', ylabel=r'Current ($\mu$A)')

x = np.linspace(0.75, 1.25, 201)

Expand Down Expand Up @@ -252,4 +252,4 @@ def model(x, p):
ax.set(xlabel=r'Напряжение (mV)')
ax.set(ylabel=r'Сила тока ($\mu$A)')
ax.autoscale(tight=True)
fig.savefig('figures/fig16.jpg', dpi=300)
fig.savefig('figures/fig16.jpg', dpi=300)

0 comments on commit e3b0a26

Please sign in to comment.