Skip to content
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

Create ieeebw #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
66 changes: 66 additions & 0 deletions scienceplots/styles/journals/ieeebw
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Matplotlib Style for IEEE Black and White Plots
# This style is tailored for use with most two-column journal formats.

# Set color cycle
# Define line styles for compatibility with black-and-white printing
axes.prop_cycle : cycler('color', ['k', 'k', 'k', 'k']) + cycler('linestyle', ['-', '--', ':', '-.'])

# Set default figure size and resolution (Black and white: 300 DPI, Grayscale: 300 DPI, Line art: 1200 DPI, CMYK: 300 DPI)
figure.figsize : 3.3, 2.5
figure.dpi : 300

# Zemin rengi için varsayılan ayarlar (bu, Python kodunda değiştirilebilir)
figure.facecolor : white

# Ensure figure and text remain within the frame
# This section can be adjusted to control padding and alignment of elements.
axes.autolimit_mode : round_numbers
axes.xmargin : 0.05
axes.ymargin : 0.05

# Axis ticks settings
xtick.direction : in
xtick.major.size : 3
xtick.major.width : 0.5
xtick.minor.size : 1.5
xtick.minor.width : 0.5
xtick.minor.visible : True
xtick.top : True

ytick.direction : in
ytick.major.size : 3
ytick.major.width : 0.5
ytick.minor.size : 1.5
ytick.minor.width : 0.5
ytick.minor.visible : True
ytick.right : True

# Line widths
axes.linewidth : 0.5
grid.linewidth : 0.5
lines.linewidth : 1.0

# Legend settings
legend.frameon : False
legend.fontsize : 8

# Save settings
savefig.bbox : tight
savefig.pad_inches : 0.05

# Font settings
font.size : 8
# Support both serif and sans-serif fonts
font.family : serif, sans-serif
# Define serif fonts for IEEE compliance
font.serif : Times New Roman, Times
# Define sans-serif fonts for IEEE compliance
font.sans-serif : Arial

# Fallback to Matplotlib's default font if Times or Arial is unavailable
# This prevents errors due to missing fonts on certain operating systems.
mathtext.fontset : dejavuserif

# LaTeX settings
text.usetex : True # Enable LaTeX for professional-quality text rendering
text.latex.preamble : \usepackage{amsmath} \usepackage{amssymb} \usepackage{sfmath} \usepackage{lmodern}
Loading