This figure template is implemented to follow the official CVPR 2025 [author guidelines](https://github.com/cvpr-org/author-kit).
# The Code
```python
import matplotlib.pyplot as plt
import numpy as np
from cycler import cycler
# Generate example data
x = np.linspace(0, 10, 25)
y1 = np.sin(x)
y2 = np.cos(x)
# Apply Color Universal Design (CUD) colorblind palette
plt.rcParams['axes.prop_cycle'] = cycler(color=[
'#E69F00', '#56B4E9', '#009E73',
'#F0E442', '#0072B2', '#D55E00', '#CC79A7'
])
# Set fonts
plt.rcParams['font.family'] = 'serif'
plt.rcParams['font.serif'] = ['Times New Roman', 'Times', 'DejaVu Serif', 'Computer Modern Roman']
# Set figure size: CVPR single column width is ~3.25in, double column ~6.875in.
# Pick one, then adjust hight for good aspect ratio
fig_width_in = 3.25
fig_height_in = 2.5
fig, ax = plt.subplots(figsize=(fig_width_in, fig_height_in), dpi=300)
# Plot with distinct markers and line styles
ax.plot(x, y1, label='sin(x)', linestyle='-', marker='o', markersize=3)
ax.plot(x, y2, label='cos(x)', linestyle='--', marker='s', markersize=3)
# Labels and title
ax.set_title('Example Plot for CVPR', fontsize=10)
# Remember to state units in the axis labels (if there are units)
ax.set_xlabel('X-axis', fontsize=9)
ax.set_ylabel('Y-axis', fontsize=9)
# Customize ticks and legend
ax.tick_params(labelsize=8)
ax.legend(fontsize=8, loc='best', frameon=True)
# Remove top and right spines (CVPR figures should be clean)
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)
# Add a grid to improve readability
ax.grid(True, linestyle='--', alpha=0.25)
# Tight layout for better spacing
plt.tight_layout()
# Save as high-res PDF for LaTeX inclusion
plt.savefig('cvpr_style_plot.pdf', format='pdf', bbox_inches='tight')
# Optional: save as SVG for use outside of LaTeX
plt.savefig("cvpr_style_plot.svg", format='svg', bbox_inches='tight')
# Optional: show the plot
plt.show()
```
# The Output
![[cvpr_style_plot.svg]]