From 9793395f157b073c072267e770166f1615de7431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Ke=C3=A7eci?= Date: Thu, 16 Jan 2025 00:49:27 +0300 Subject: [PATCH 1/2] Create ieeegray Matplotlib Style for IEEE Grayscale Plots --- scienceplots/styles/journals/ieeegray | 66 +++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 scienceplots/styles/journals/ieeegray diff --git a/scienceplots/styles/journals/ieeegray b/scienceplots/styles/journals/ieeegray new file mode 100644 index 0000000..3c8e1f5 --- /dev/null +++ b/scienceplots/styles/journals/ieeegray @@ -0,0 +1,66 @@ +# Matplotlib Style for IEEE Grayscale Plots +# This style is tailored for use with most two-column journal formats. + +# Set color cycle +# Define line styles for compatibility with Grayscale printing +axes.prop_cycle : cycler('color', ['k', '0.8', '0.6', '0.4']) + 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 + +# 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 + +# Zemin rengi için varsayılan ayarlar (bu, Python kodunda değiştirilebilir) +figure.facecolor : white + +# 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} From ea888724d5e1b7ca021d2304c4856ccb835edd87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Ke=C3=A7eci?= Date: Sat, 22 Feb 2025 15:07:19 +0300 Subject: [PATCH 2/2] Update ieeegray --- scienceplots/styles/journals/ieeegray | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scienceplots/styles/journals/ieeegray b/scienceplots/styles/journals/ieeegray index 3c8e1f5..26f92e3 100644 --- a/scienceplots/styles/journals/ieeegray +++ b/scienceplots/styles/journals/ieeegray @@ -15,7 +15,7 @@ axes.autolimit_mode : round_numbers axes.xmargin : 0.05 axes.ymargin : 0.05 -# Zemin rengi için varsayılan ayarlar (bu, Python kodunda değiştirilebilir) +# Default settings for the ground color (this can be changed in the Python code) figure.facecolor : white # Axis ticks settings