What problem does it solve?
This Skill streamlines the creation of publication-ready scientific figures, ensuring clarity, accuracy, and accessibility.
Core Features & Use Cases
- Publication Styles: Apply predefined journal-specific styles.
- Data Visualization: Generate high-quality line plots, bar plots, heatmaps, and more.
- Customization: Fine-tune figure appearance, from font sizes to color schemes.
- Use Case: If you need to create a line plot for a journal submission, this Skill can automatically apply the appropriate style and save the figure in the correct format.
Quick Start
Create a line plot with error bars and save it as a PDF for publication using the following code snippet:
import matplotlib.pyplot as plt
import numpy as np
from style_presets import apply_publication_style
apply_publication_style('default')
fig, ax = plt.subplots(figsize=(3.5, 2.5))
x = np.linspace(0, 10, 100)
ax.plot(x, np.sin(x), label='sin(x)')
ax.errorbar(x, np.sin(x), yerr=np.sin(x) * 0.1, label='error')
ax.set_xlabel('Time (seconds)')
ax.set_ylabel('Amplitude (mV)')
ax.legend()
fig.savefig('line_plot.pdf')