making publication quality plots

Howdy y'all!

I'm trying to make a publication quality plot for a two-column latex article. I'm using latex for text processing, so the plot quality itself is impeccable. However, as I scale the plot size down, the legend becomes extremely large compared to the plot itself. Has anyone solved this problem in a good manner? I'm not willing to make do without the legend.

cheers,
Paul.

Hi,

I usually fix the size of the figure when I produce it. I use rcparams
below for a single column plot. This usually solves the problem. What
you see is what you get in the final document if you use the same size
of the figure as used to produce it.

def paper_single():
    plt.rc('figure', figsize=(3.375,3.375))
    plt.rc('figure.subplot', left=0.15, right=0.97, bottom=0.1, top=0.95)
    plt.rc('lines', linewidth=1.5)
    plt.rc('font', size=10.0)
    plt.rc('xtick', labelsize='small')
    plt.rc('ytick', labelsize='small')
    plt.rc('legend', fontsize='medium')

Cheers,
Chaitanya

···

On Fri, May 29, 2009 at 5:25 PM, Paul Anton Letnes <paul.anton.letnes@...287...> wrote:

Howdy y'all!

I'm trying to make a publication quality plot for a two-column latex
article. I'm using latex for text processing, so the plot quality
itself is impeccable. However, as I scale the plot size down, the
legend becomes extremely large compared to the plot itself. Has
anyone solved this problem in a good manner? I'm not willing to make
do without the legend.

cheers,
Paul.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

The major determinant of the legend is the fontsize, so if you want to
make a small figure in inches, you may want to make the legend font
smaller

  import matplotlib.font_manager as font_manager
  leg = ax.legend(loc='upper left', prop=font_manager.FontProperties(size=10))

JDH

···

On Fri, May 29, 2009 at 10:25 AM, Paul Anton Letnes <paul.anton.letnes@...287...> wrote:

I'm trying to make a publication quality plot for a two-column latex
article. I'm using latex for text processing, so the plot quality
itself is impeccable. However, as I scale the plot size down, the
legend becomes extremely large compared to the plot itself. Has
anyone solved this problem in a good manner? I'm not willing to make
do without the legend.