Re: Simplify complex graph from matplotlib

2020-10-01 Thread Murat Yildizoglu
Hello Neal, I flatten such graphics by converting them to PNG. They take less 
memory as such. 

--

Prof. Murat Yildizoglu
Advisor to the Minister of Education, Youth and Sports of Cambodia
Expertise France

On leave from:
UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)

web: www.yildizoglu.fr

> Le 2 oct. 2020 à 02:46, Neal Becker  a écrit :
> 
> 
> Don't know if this is more appropriate for lyx or mpl.  I have a couple of 
> graphs with a large number of points.  They were exported from matplotlib as 
> pdf, and produced large files.  After including in lyx, the resulting pdf 
> takes a long time to load.
> 
> The plots don't really need so many points at all.  Other than going back to 
> the mpl source to plot fewer points, is there a way to fix this?
> 
> Thanks,
> Neal
> 
> -- 
> Those who don't understand recursion are doomed to repeat it
> -- 
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


RE: Simplify complex graph from matplotlib

2020-10-01 Thread Bernt Lie
I had a similar problem lately: I produced a scatterplot using matplotlib (or 
rather: the matplotlib back-end for Plots in Julia), and stored the file as 
*.svg – with a file size of some 5 MB. I tried to subsample the plot, e.g., by 
using only 10% of the points. Still a relatively large plot file.

In the end, I saved the file as a *.png file, which took some 150-200 kB. Not 
as pretty, but close enough.

-B

From: lyx-users  On Behalf Of Neal Becker
Sent: Thursday, October 1, 2020 21:46
To: LyX Users List 
Subject: Simplify complex graph from matplotlib

Don't know if this is more appropriate for lyx or mpl.  I have a couple of 
graphs with a large number of points.  They were exported from matplotlib as 
pdf, and produced large files.  After including in lyx, the resulting pdf takes 
a long time to load.

The plots don't really need so many points at all.  Other than going back to 
the mpl source to plot fewer points, is there a way to fix this?

Thanks,
Neal

--
Those who don't understand recursion are doomed to repeat it
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Simplify complex graph from matplotlib

2020-10-01 Thread Neal Becker
Don't know if this is more appropriate for lyx or mpl.  I have a couple of
graphs with a large number of points.  They were exported from matplotlib
as pdf, and produced large files.  After including in lyx, the resulting
pdf takes a long time to load.

The plots don't really need so many points at all.  Other than going back
to the mpl source to plot fewer points, is there a way to fix this?

Thanks,
Neal

-- 
*Those who don't understand recursion are doomed to repeat it*
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: 'su lyx' changes file access privileges

2020-10-01 Thread Pavel Sanda
On Thu, Oct 01, 2020 at 01:40:11PM +0200, paolo m.  wrote:
> % su - user2
> % umask
>   002
> 
> Umask does not change and lyx starts. File privileges are changed, as 
> before.

Interesting. I do not see this problem here (qt4), umask is respected by
lyx so the user2 resaves the file as -rw-rw-r-- with umask 002.

What is not working is group preservation, i.e. the resaved file
has different group ownership. This is sort of buggy, but expected
because IIRC we do not care in the code about group preservation.

Anyway, even if fixed it won't solve your problem and I don't know
how it's triggered.

Pavel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: 'su lyx' changes file access privileges

2020-10-01 Thread paolo m.
Pavel Sanda wrote:

> On Wed, Sep 30, 2020 at 10:04:20AM +0200, Pavel Sanda wrote:
>> On Sun, Sep 27, 2020 at 04:31:24PM +0200, paolo m.  wrote:
>> > >  Here it is for example
>> > >  $ umask
>> > > 22
>> > > 
>> > > Kornel
>> > 
>> > Umask is the same for both users:
>> > % umask
>> >  002
>> >  
>> > 
>> > % grep -i umask /etc/zshenv
>> >   umask u=rwx,g=rwx,o=rx
>> 
>> Does umask output changes if you invoke su with '-', i.e.
>> su - user2
> 
> Actually could you try to run lyx under '-' scenario as well? P


% su - user2
% umask
  002

Umask does not change and lyx starts. File privileges are changed, as 
before.

p.




-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users