Re: Graphic file formats
On Thu, 9 Dec 2021, Murat Yildizoglu wrote: I understand Rich. I tend to think that when outliers are important, boxplots are maybe not the best way to represent such a data. For example, they easily get difficult to interpret because of the compression imposed by them on the boxes, given the axes’ scales. Murat, While specific outlier values can be presented elsewhere when important, the patterns of variability, including many outliers, communicate well in boxplots. It all depends on the audience and context. Stay well, Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Graphic file formats
I understand Rich. I tend to think that when outliers are important, boxplots are maybe not the best way to represent such a data. For example, they easily get difficult to interpret because of the compression imposed by them on the boxes, given the axes’ scales. -- 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 9 déc. 2021 à 23:04, Rich Shepard via lyx-users > a écrit : > > On Thu, 9 Dec 2021, Murat Yildizoglu via lyx-users wrote: > >> In Rich’s specific case, I suspect that the outliers of the boxplots crowd >> the plot. ggplot has an option for not plotting them, then you have just >> simple boxes left on the plot, and they do not need much memory, a few Ko >> only. > > Murat, > > Addressing environmental regulatory issues outliers are very important. > > Rich > -- > 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: Graphic file formats
On Thu, 9 Dec 2021, Murat Yildizoglu via lyx-users wrote: In Rich’s specific case, I suspect that the outliers of the boxplots crowd the plot. ggplot has an option for not plotting them, then you have just simple boxes left on the plot, and they do not need much memory, a few Ko only. Murat, Addressing environmental regulatory issues outliers are very important. Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Graphic file formats
You can even save in PNG from R and choose the definition in dpi that you want and the size of the bitmap plot. You can make them quite big, they will never be as demanding as a vector image (as in a pdf export) with thousands data points. In Rich’s specific case, I suspect that the outliers of the boxplots crowd the plot. ggplot has an option for not plotting them, then you have just simple boxes left on the plot, and they do not need much memory, a few Ko only. For showing data distribution, I also like to use, when they are informative and relevant, kernel-density plots instead of data points. I have had to find these substitution strategies because my points plots were saturating the lab printer’s memory, giving incomplete printed pages (and yes, the pages were also slow to show on screen of course with machines of that time). http://yildizoglu.fr Le 9 déc. 2021 à 20:57 +0700, Herbert Voss via lyx-users , a écrit : > > > Am 08.12.21 um 18:09 schrieb Rich Shepard via lyx-users: > > On Wed, 8 Dec 2021, Steve Litt wrote: > > > > > That's a lot of time. How many words is this book? > > > > > > It's not the document's size, but the PDF image's size. I've attached > > a copy > > of the 3.7M file so everyone can play with loading it in a document. > > Here: https://hvoss.org/document2.pdf is a pdf with your image, > the first one as pdf the second one as png: > > -rw-r--r-- 1 voss wheel 108688 9 Dez 14:49 all-discharge-plots-1.png > -rw-r--r--@ 1 voss wheel 3704503 9 Dez 14:45 all-discharge-plots.pdf > > the ong has only 108kB and was converted with pdftocairo -png ... > > Herbert > -- > 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: Graphic file formats
On Thu, 9 Dec 2021, Herbert Voss via lyx-users wrote: Here: https://hvoss.org/document2.pdf is a pdf with your image, the first one as pdf the second one as png: -rw-r--r-- 1 voss wheel 108688 9 Dez 14:49 all-discharge-plots-1.png -rw-r--r--@ 1 voss wheel 3704503 9 Dez 14:45 all-discharge-plots.pdf the ong has only 108kB and was converted with pdftocairo -png ... Herbert, That's interesting, and I'll see if the bitmapped graphic fits the same space as the vector one. I've not known of pdftocairo. The slow loading (about 14 seconds) in the compiled document is one issue. The more serious one now is with LyX itself: it now hangs when I click the 'Select' button on the open file dialog box or the 'Browse' button on the graphic insert dialog box. LyX consumes 100% of the CPU core and all I can do is kill the process. Started a couple of days ago and had never before occurred. Thanks, Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Graphic file formats
Am 08.12.21 um 18:09 schrieb Rich Shepard via lyx-users: On Wed, 8 Dec 2021, Steve Litt wrote: That's a lot of time. How many words is this book? It's not the document's size, but the PDF image's size. I've attached a copy of the 3.7M file so everyone can play with loading it in a document. Here: https://hvoss.org/document2.pdf is a pdf with your image, the first one as pdf the second one as png: -rw-r--r-- 1 voss wheel 108688 9 Dez 14:49 all-discharge-plots-1.png -rw-r--r--@ 1 voss wheel 3704503 9 Dez 14:45 all-discharge-plots.pdf the ong has only 108kB and was converted with pdftocairo -png ... Herbert -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Graphic file formats
On Thu, 9 Dec 2021, Neal Becker via lyx-users wrote: I've had some issues similar to this, although none of my timings are as long as you describe. I often create plots with matplotlib. I believe that if you draw, say a scatterplot with 10^6 data points, the resulting pdf will contain 10^6 instructions to draw points. This may cause slow rendering (and printing!). The most straightforward fix I know of is don't do that, write code to resample the results to a smaller set. However, that requires work on my part. Neal, The data used to create a plot should be appropriate to communicate what's important about the data. Recently I calculated monthly averages for river discharge and plotted those because the data set was very large and monthly averages were sufficient for that project. My current project focuses on a different river's discharge variability at multiple time scales (hourly, daily, monthly, seasonally, and annually) so I need all 813694 measurements over the 33 year period of record for an overall data distribution summary. I've searched a couple of times for a software solution (say, a backend for mpl that would automatically simplify plots), but so far I haven't found anything. Similarly, it would be nice to have a solution that directly simplifies a pdf. I don't think this is the same thing as compressing a pdf (although I could be wrong). I've no idea what 'simplifying' a plot would entail. But, since ghostscript reduced my plot's size by about 74% with no effect on resolution I'm satisfied with that. Regards, Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Graphic file formats
Rich Shepard said on Wed, 8 Dec 2021 09:53:55 -0800 (PST) >On Wed, 8 Dec 2021, Steve Litt wrote: > >> There are ways to shrink PDF size: >> Web search: linux shrink pdf size > >SteveT, > >First hit uses ghostscript; I never dove deep into gs and didn't know >that it can effectively compress a PDF file. It compressed the >original 3,704,503 byte file to 897,417 bytes; a reduction of 76%. >That's impressive. Hi Rich, Did the shrunken PDF have a material effect on timing? SteveT Steve Litt Spring 2021 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Graphic file formats
I am not a pdf expert but this rather surprising given my experience with R plots. Rich, have you checked that the figures have not been converted to bitmaps with a default (and probably insufficient ) quality during this compression? You can check it by zooming in on the figures to see if they quickly pixellise and become ugly. -- 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 9 déc. 2021 à 00:54, Rich Shepard a écrit : > > On Wed, 8 Dec 2021, Steve Litt wrote: > >> There are ways to shrink PDF size: >> Web search: linux shrink pdf size > > SteveT, > > First hit uses ghostscript; I never dove deep into gs and didn't know that > it can effectively compress a PDF file. It compressed the original 3,704,503 > byte file to 897,417 bytes; a reduction of 76%. That's impressive. > > Thanks for the valuable lesson! > > Stay well, > > Rich > > -- > 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: Graphic file formats
On Wed, 8 Dec 2021, Steve Litt wrote: There are ways to shrink PDF size: Web search: linux shrink pdf size SteveT, First hit uses ghostscript; I never dove deep into gs and didn't know that it can effectively compress a PDF file. It compressed the original 3,704,503 byte file to 897,417 bytes; a reduction of 76%. That's impressive. Thanks for the valuable lesson! Stay well, Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Graphic file formats
On Wed, 8 Dec 2021, Murat Yildizoglu wrote: If the plot has many points, the PDF may not be the best choice. I have even seen cases where the printer cannot process the page with such a plot I generally choose to export such graphics as a bitmap (PNG) with a high definition for ensuring a sufficient quality for inclusion in the final pdf document or to be sent to the editor. Murat, That's a thought. I'll give it a test and see how it works. Thanks, Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Graphic file formats
Murat Yildizoglu said on Wed, 8 Dec 2021 08:49:14 +0700 >Dear Rich, >If the plot has many points, the PDF may not be the best choice. I >have even seen cases where the printer cannot process the page with >such a plot I generally choose to export such graphics as a bitmap >(PNG) with a high definition for ensuring a sufficient quality for >inclusion in the final pdf document or to be sent to the editor. -- I'm not sure what "inclusion in the final PDF means, but if it means inclusion in the PDF representing the whole book, my understanding is that he must make that .png exactly the right dimensions, because being a bitmap, most scaling produces distortions. My understanding is that in LuaTeX, in PDF mode, can *natively* handle .png, so no conversion by LyX will be necessary. If this is true, and if the .png is created with the exactly right dimensions to fit the book page, then this would indeed be a possibility. SteveT Steve Litt Spring 2021 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Graphic file formats
Dear Rich, If the plot has many points, the PDF may not be the best choice. I have even seen cases where the printer cannot process the page with such a plot I generally choose to export such graphics as a bitmap (PNG) with a high definition for ensuring a sufficient quality for inclusion in the final pdf document or to be sent to the editor. -- 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 8 déc. 2021 à 07:05, Rich Shepard a écrit : > > On Tue, 7 Dec 2021, Steve Litt wrote: > >> As far as my diagrams created in Inkscape, I put them in the images folder >> as .svg, and tell LyX to compile each to PDF. PDF completely saves the >> vector information, so that you can resize without significant jaggies. > > Steve, > > I don't use Inkscape. My images are created by R and GRASS. > > Thanks, > > Rich > -- > 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: Graphic file formats
Rich Shepard said on Tue, 7 Dec 2021 16:05:09 -0800 (PST) >On Tue, 7 Dec 2021, Steve Litt wrote: > >> As far as my diagrams created in Inkscape, I put them in the images >> folder as .svg, and tell LyX to compile each to PDF. PDF completely >> saves the vector information, so that you can resize without >> significant jaggies. > >Steve, > >I don't use Inkscape. My images are created by R and GRASS. Same difference, as long as they're in SVG format. If they're not, what format are they in? SteveT Steve Litt Spring 2021 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Graphic file formats
On Tue, 7 Dec 2021, Steve Litt wrote: As far as my diagrams created in Inkscape, I put them in the images folder as .svg, and tell LyX to compile each to PDF. PDF completely saves the vector information, so that you can resize without significant jaggies. Steve, I don't use Inkscape. My images are created by R and GRASS. Thanks, Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Strange file viewer for file formats
On 18/01/2012 12:07 PM, HHa wrote: In Tools->properties->file handling->file format I find several choices for e. g. simple text, latex, pdf, but for each group there is only onw viewer. What is the purpose of the choices? It allows you to select the viewer that is launched according to the format you would like to view? I think I am missing the point of your question, please clarify. Regards, Julien
Strange file viewer for file formats
In Tools->properties->file handling->file format I find several choices for e. g. simple text, latex, pdf, but for each group there is only onw viewer. What is the purpose of the choices? -- Viele Grüße, Hartmut Hungerhilfe: http://www.thehungersite.com Ohne Zensur suchen: http://suche.amnesty-bergedorf.de/ ökologisch suchen: http://www.ecosia.de Das heutige Motto: Hoffnung ist ein gutes Frühstück, aber ein schlechtes Abendbrot.
Re: can't edit Converters, File Formats, Copiers
2009/8/15 rgheck : > On 08/15/2009 03:21 PM, unknownmosquito wrote: >> >> Joe wrote: >> >>> >>> In the GUI for LyX the Add and Modify buttons are gray. I can't modify. >>> Any advice is appreciated. >>> >>> I'm running 1.5.6 on OS X 10.5.4 >>> >>> http://n2.nabble.com/file/n669102/Picture%2B3.png Picture+3.png >>> http://n2.nabble.com/file/n669102/Picture%2B3.png >>> >>> >> >> >> I have this same problem on two different Fedora 11 machines: >> http://n2.nabble.com/file/n3450869/%2BPreferences.png >> >> It is extremely frustrating. If there is a workaround, please let me know. >> >> > > This dialog is kind of confusing. You have to change something, and then the > "add" or "modify" button will be enabled. So e.g., if you change the "From > format" to "DVI" and "To format" to "LaTeX (plain)", then the Add button > will be enabled, so that you can add a DVI-->LaTeX converter (??). > Alternatively, if you click on "DVI --> Postscript" and then add something > in the "Extra flag" box, then the Modify button will be enabled. > > As I said, I know this is kind of confusing, but we haven't found a better > system. If I may suggest something, that could be done in more intuitive ways: 1. More Eclipse approach: Create edit button and do additional dialog for editing. 2. Keep fields for typing converter parameters disabled. Then when clicked New - create new row with name 'New Converter', select it, enable all fields to type and commit button. When clicked edit just enable the fields to edit and the commit button. Display an question dialog box when someone clicked on the list of converters above or the menu of options about abandoning changes. That would be more intuitive in my opinion. -- Manveru jabber: manv...@manveru.pl gg: 1624001 http://www.manveru.pl
Re: can't edit Converters, File Formats, Copiers
On 08/15/2009 03:21 PM, unknownmosquito wrote: Joe wrote: In the GUI for LyX the Add and Modify buttons are gray. I can't modify. Any advice is appreciated. I'm running 1.5.6 on OS X 10.5.4 http://n2.nabble.com/file/n669102/Picture%2B3.png Picture+3.png http://n2.nabble.com/file/n669102/Picture%2B3.png I have this same problem on two different Fedora 11 machines: http://n2.nabble.com/file/n3450869/%2BPreferences.png It is extremely frustrating. If there is a workaround, please let me know. This dialog is kind of confusing. You have to change something, and then the "add" or "modify" button will be enabled. So e.g., if you change the "From format" to "DVI" and "To format" to "LaTeX (plain)", then the Add button will be enabled, so that you can add a DVI-->LaTeX converter (??). Alternatively, if you click on "DVI --> Postscript" and then add something in the "Extra flag" box, then the Modify button will be enabled. As I said, I know this is kind of confusing, but we haven't found a better system. rh
Re: can't edit Converters, File Formats, Copiers
Joe wrote: > > In the GUI for LyX the Add and Modify buttons are gray. I can't modify. > Any advice is appreciated. > > I'm running 1.5.6 on OS X 10.5.4 > > http://n2.nabble.com/file/n669102/Picture%2B3.png Picture+3.png > http://n2.nabble.com/file/n669102/Picture%2B3.png > I have this same problem on two different Fedora 11 machines: http://n2.nabble.com/file/n3450869/%2BPreferences.png It is extremely frustrating. If there is a workaround, please let me know. -- View this message in context: http://n2.nabble.com/can%27t-edit-Converters%2C-File-Formats%2C-Copiers-tp669102p3450869.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: file formats
Thank you. It is confusing! However, I've just discovered that it is covered in the documentation (Appendix B of the user guide). My apologies for not RTFMing before. Best. On Wed, Aug 20, 2008 at 12:21 PM, killermike <[EMAIL PROTECTED]> wrote: > Florin Oprina wrote: >> >> Hi all! >> I'm trying to add a new "file format" in the preferences dialogue. >> However, the Add button is greyed out. What am I missing? >> > > This can look a bit confusing at first. You start editing an existing > file format and then click on add. > > -- > http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek > culture freelance writer > > > >
Re: file formats
Florin Oprina wrote: Hi all! I'm trying to add a new "file format" in the preferences dialogue. However, the Add button is greyed out. What am I missing? This can look a bit confusing at first. You start editing an existing file format and then click on add. -- http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek culture freelance writer
file formats
Hi all! I'm trying to add a new "file format" in the preferences dialogue. However, the Add button is greyed out. What am I missing? Using LyX 1.5.3 on Ubuntu Linux Thanks in advance.
Re: can't edit Converters, File Formats, Copiers
rgheck wrote: Uwe Stöhr wrote: I know that this dialog is quite unintuitive, but the other developers don't agree with me. One does. As does one non-developer. :-)
Re: can't edit Converters, File Formats, Copiers
Uwe Stöhr wrote: I know that this dialog is quite unintuitive, but the other developers don't agree with me. One does. rh
Re: can't edit Converters, File Formats, Copiers
Joe schrieb: In the GUI for LyX the Add and Modify buttons are gray. I can't modify. Any advice is appreciated. You can only press the modify button when you changed an existing file format. To add a file format and change its edit fields to a new one. Than you can press Add. The UserGuide and the Extended manual will tell you more. I know that this dialog is quite unintuitive, but the other developers don't agree with me. So the best is when you report this problematic at bugzilla.lyx.org. I think the most intuitive way is when Add is always active. When you pres Add, a new blank file format appears where you can fill the different fields. Then press Save and you got a new file format. What would be your aproach? regards Uwe
can't edit Converters, File Formats, Copiers
In the GUI for LyX the Add and Modify buttons are gray. I can't modify. Any advice is appreciated. I'm running 1.5.6 on OS X 10.5.4 http://n2.nabble.com/file/n669102/Picture%2B3.png Picture+3.png http://n2.nabble.com/file/n669102/Picture%2B3.png -- View this message in context: http://n2.nabble.com/can%27t-edit-Converters%2C-File-Formats%2C-Copiers-tp669102p669102.html Sent from the LyX - Users mailing list archive at Nabble.com.
Defining new file formats
Hi I have started to use a program called ipe. It is excellent for good locking figures using lines. It has the capability to save both eps and pdf, while its "native" format is .xml I tried to make it possible to insert such xml files and have LyX do the right conversion to the right format depending on what export type I use. When running latex I'd like it to do ipetoipe -eps $$i $$o and when running pdflatex ipetoipe -pdf $$i $$o For the view in LyX this should be run ipetopng 1 72 $$i $$o meaning first page of the file with resolution 72 dpi So I tried to define a file format and some converters. There the problems started. Using the Preferences GUI I defined a new file format resulting in \format "Ipe" "xml" "Ipe" "" and a converter with \converter "Ipe" "eps" "ipetoipe -eps $$i $$o" "" Trying to export to ps, LyX says "No information for converting from xml to eps" Thought maybe LyX need a converter for viewing I defined \converter "Ipe" "png" "ipetopng 1 72 $$i $$o" "" but still the same result. It seem as if LyX does not recognize my Ipe file type. So I change the file format to be named xml by manually changing the preferences file \format "xml" "xml" "Ipe" "" \converter "xml" "eps" "ipetoipe -eps $$i $$o" "" \converter "xml" "png" "ipetopng 1 72 $$i $$o" "" (I first tried to change this via the GUI but as soon I pressed Save after having changed the format to xml, lyx crashed hard) Now it worked, I can view the ipe file in LyX and also export to eps. However when exporting with pdflatex I lose all nice lineart because it is first converted to png. So I define a ipetopdf \converter "xml" "pdf" "ipetoipe -pdf $$i $$o" "" To my surprise that does not help, it still includes the pdf-file. Removing the xml to png converter will make LyX use the xml to pdf converter but: 1. The convert script does not recognize the bounding box of pdf so the figure is shown in some papersize. "lyx -dbg graphics" revealed that ipetoipe -pdf was executed and after that convert .pdf XPM: so I guess the problem is not in the LyX scripts but in convert. 2. When using pdflatex LyX still asks for a png resulting in no output. When doing the conversion to pdf manually and including them into the lyx file everyting looks as it should with the right bounding box. To conclude I have found 1. LyX does not recognize the newly defined file-format Ipe 2. LyX does not convert to pdf even if the converter is defined, But note: only when executing pdflatex. I use lyx 1.3.5-qt on a RedHat 9. Are those bugs or some converter I forgot to define. Should I post a bug to bugzilla? /johan