Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

TeX label and list-variable in plot

I want to use a [... for n in ...] to generate plots. How can I combine in a legend and/or title, TeX with the variable that runs (here $n$) to generate the list of plots? Minimal example:

some_plots=[plot(x^n,(x,0,1.1),title=r'$x^n$ where $n$ takes the value in the box', 
                 legend_label=n, rgbcolor=hue(.1*n)) for n in range(0,10)] 
sum(some_plots[s] for s in range(0,10))

which shows a box with colors, and, separately the title. How can I add $n$ to the box? If I combine TeX and the variable (like $x^n$=n) I get errors.

TeX label and list-variable in plot

I want to use a [... for n in ...] to generate plots. How can I combine in a legend and/or title, TeX with the variable that runs (here $n$) to generate the list of plots? Minimal example:

some_plots=[plot(x^n,(x,0,1.1),title=r'$x^n$ where $n$ takes the value in the box', 
                 legend_label=n, rgbcolor=hue(.1*n)) for n in range(0,10)] 
sum(some_plots[s] for s in range(0,10))

which shows a box with colors, and, separately the title. How can I add $n$ to the box? If I combine TeX and the variable (like $x^n$=n) I get errors.

TeX label and running list-variable in plota plot legend or plot title

I want to use a [... for n in ...] to generate plots. How can I combine in a legend and/or title, TeX with the variable that runs (here $n$) to generate the list of plots? Minimal example:

some_plots=[plot(x^n,(x,0,1.1),title=r'$x^n$ where $n$ takes the value in the box', 
                 legend_label=n, rgbcolor=hue(.1*n)) for n in range(0,10)] 
sum(some_plots[s] for s in range(0,10))

which shows a box with colors, and, separately the title. How can I add $n$ to the box? If I combine TeX and the variable (like $x^n$=n) I get errors. errors.

TeX label and running list-variable in a plot legend or plot title

I want to use a [... for n in ...] to generate plots. How can I combine in a legend and/or title, TeX with the variable that runs (here $n$) to generate the list of plots? Minimal example:

some_plots=[plot(x^n,(x,0,1.1),title=r'$x^n$ where $n$ takes the value in the box', box (format is not nice, though)'', 
                 legend_label=n, rgbcolor=hue(.1*n)) for n in range(0,10)] 
sum(some_plots[s] for s in range(0,10))

which shows a box with colors, and, separately the title. How can I add $n$ to the box? If I combine TeX and the variable (like $x^n$=n) I get errors.errors. (I cannot upload yet pictures, which would make the question very clear)

TeX label and running list-variable in a plot legend or plot title

I want to use a [... for n in ...] to generate plots. How can I combine in a legend and/or title, TeX with the variable that runs (here $n$) to generate the list of plots? Minimal example:

some_plots=[plot(x^n,(x,0,1.1),title=r'$x^n$ where $n$ takes the value in the box  (format is not nice, though)'', though)', 
                 legend_label=n, rgbcolor=hue(.1*n)) for n in range(0,10)] 
sum(some_plots[s] for s in range(0,10))

which shows a box with colors, and, separately the title. How can I add $n$ to the box? If I combine TeX and the variable (like $x^n$=n) I get errors. (I cannot upload yet pictures, which would make the question very clear)

TeX label and running list-variable in a plot legend or plot title

I want to use a [... for n in ...] to generate plots. How can I combine in a legend and/or title, TeX with the variable that runs (here $n$) to generate the list of plots? Minimal example:

some_plots=[plot(x^n,(x,0,1.1),title=r'$x^n$ where $n$ takes the value in the box 
                 (format is not nice, though)', 
                 legend_label=n, rgbcolor=hue(.1*n)) for n in range(0,10)] 
sum(some_plots[s] for s in range(0,10))

which shows a box with colors, and, separately the title. How can I add $n$ to the box? If I combine TeX and the variable (like $x^n$=n) I get errors. (I cannot upload yet pictures, which would make the question very clear)

TeX label and running list-variable in a plot legend or plot title

I want to use a [... for n in ...] to generate plots. How can I combine in a legend and/or title, TeX with the variable that runs (here $n$) to generate the list of plots? Minimal example:

some_plots=[plot(x^n,(x,0,1.1),title=r'$x^n$ where $n$ takes the value in the box 
                 (format is not nice, though)', 
                 legend_label=n, rgbcolor=hue(.1*n)) for n in range(0,10)] 
sum(some_plots[s] for s in range(0,10))

which shows a box with colors, and, separately the title. How can I add $n$ to the box? If I combine TeX and the variable (like $x^n$=n) I get errors. (I cannot upload yet pictures, which would make the question very clear)

TeX label and running list-variable simultaneously in a plot legend or plot title

I want to use a [... for n in ...] to generate plots. How can I combine in a legend and/or title, TeX with the variable that runs (here $n$) to generate the list of plots? Minimal example:

some_plots=[plot(x^n,(x,0,1.1),title=r'$x^n$ where $n$ takes the value in the box 
                 (format is not nice, though)', 
                 legend_label=n, rgbcolor=hue(.1*n)) for n in range(0,10)] 
sum(some_plots[s] for s in range(0,10))

which shows a box with colors, and, separately the title. How can I add $n$ to the box? If I combine TeX and the variable (like $x^n$=n) I get errors. (I cannot upload yet pictures, which would make the question very clear)