Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

list_plot generator

I have created a python generator that yeilds a list of single values (e.g. like [1,971,15,341,..] up to some defined length of n,and wanted to plot them in sagemath. When I pass the generator to list_plot, I get an error as list_plot only accepts lists, tuples and dictionaries. Is there any way to get the list_plot behaviour from a generator without converting to a list first (Too memory-hungry for my purpose)?

If not, I'm planning to request an enhancement to list_plot, if at all possible.

list_plot generator

I have created a python generator that yeilds a list of single values (e.g. like [1,971,15,341,..] up to some defined length of n,and wanted to plot them in sagemath. sagemath.

When I pass the generator to list_plot, I get an error as list_plot only accepts lists, tuples and dictionaries. dictionaries.

Is there any way to get the list_plot behaviour from a generator without converting to a list first (Too memory-hungry for my purpose)?

If not, I'm planning to request an enhancement to list_plot, if at all possible.

list_plot generator

I have created a python generator that yeilds a list of single values (e.g. like [1,971,15,341,..] [1,971,15,341,..]) up to some defined length of n,and wanted to plot them in sagemath.

When I pass the generator to list_plot, I get an error as list_plot only accepts lists, tuples and dictionaries.

Is there any way to get the list_plot behaviour from a generator without converting to a list first (Too memory-hungry for my purpose)?

If not, I'm planning to request an enhancement to list_plot, if at all possible.

list_plot generator

I have created a python generator that yeilds a list of single values (e.g. like [1,971,15,341,..]) up to some defined length of n,and wanted to plot them in sagemath.

When I pass the generator to list_plot, I get an error as list_plot only accepts lists, tuples and dictionaries.

Is there any way to get the list_plot behaviour from a generator without converting to a list first (Too (To memory-hungry for my purpose)?

If not, I'm planning to request an enhancement to list_plot, if at all possible.