-
Notifications
You must be signed in to change notification settings - Fork 722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update turkish-font.mplstyle #132
base: master
Are you sure you want to change the base?
Conversation
In this way, the code represents a modern standard in terms of both being up-to-date and supporting Turkish fonts and language.
Thanks for still contributing @WhiteSymmetry !! ❣️ Details
from matplotlib import pyplot as plt
import numpy as np
import scienceplots # noqa: F401
import os
def model(x, p):
return x ** p
os.makedirs('figures', exist_ok=True)
x = np.linspace(0, 1, 100)
with plt.style.context(['science', 'turkish-font']):
fig, ax = plt.subplots()
for p in [5, 7, 10, 15, 20, 30, 38, 50, 100]:
ax.plot(x, model(x, p), label=p)
ax.legend(title=r'Düzen', fontsize=7)
ax.set(xlabel=r'Gerilim/Volt (mV)')
ax.set(ylabel=r'Mevcut Güç/Akım ($\mu$A)')
ax.autoscale(tight=True)
fig.savefig('figures/fig17a.jpg', dpi=300) Details
# %%
from matplotlib import pyplot as plt
import numpy as np
import scienceplots # noqa: F401
import os
def model(x, p):
return x ** p
os.makedirs('figures', exist_ok=True)
x = np.linspace(0, 1, 100)
# %%
with plt.style.context(['science', 'turkish-font-edited.mplstyle']):
fig, ax = plt.subplots()
for p in [5, 7, 10, 15, 20, 30, 38, 50, 100]:
ax.plot(x, model(x, p), label=p)
ax.legend(title=r'Düzen', fontsize=7)
ax.set(xlabel=r'Gerilim/Volt (mV)')
ax.set(ylabel=r'Mevcut Güç/Akım ($\mu$A)')
ax.autoscale(tight=True)
fig.savefig('figures/fig17.jpg', dpi=300) I'm on board with the changes, but if there is a rationale for including them, please detail, so we can reference bug reports if needed and publish them in the changelog (you may want to edit the changelog file too). |
To avoid manually declaring features already provided by default in modern TeX systems, improve typography quality, and simplify the document setup.
|
That's super, thanks for the in-depth explanation. |
In this way, the code represents a modern standard in terms of both being up-to-date and supporting Turkish fonts and language.