fxplot-users Mailing List for FXPlot - 2D plotting for the FOX-toolkit
Status: Beta
Brought to you by:
rpseng
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(4) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Julien de C. <jul...@te...> - 2006-08-24 01:34:10
|
Hi, I am just starting using FXPlot within my application.It looks ideal for what I want to do: 2D plots. I have a few comments: * I am not familiar with CMake. I redid the makefile system using aclocal, automake (etc...) to get a configure script. Let me know if anyone is interested in it.I am using Windows XP - SP2 with MinGW and fox-1.6.9. * In the settings box, I would like to have a "Hide curve" instead of a "Remove curve" - to enable the possibility to show it later. What would be the best way to change that? * I haven't got in the details of FXPlot coding yet. Is there an easy way to output and read the user specifications (eg position of label, color of lines and symbols...) in a registry? I am trying to get the look and feel to be resumed between start of the application. * I am planning to release a new version of my application linked to FXPlot. My application is GPL licensed at http://sourceforge.net/projects/mywej. Is it ok if I provide FXPlot as a .dll for Windows? What "thanks-you" mention would be appropriate (to be in documentation, and about box)? This software includes and uses FXPlot (http://sourceforge.net/projects/fxplot)? Kind regards, Julien |
From: <jea...@fr...> - 2006-02-03 08:29:36
|
Rafael, thank for the tip, i'm going to check it. However, note that the top axis label is not working either, which then s= hould not come from vertical drawing fonts. Anyway, i'll keep you informed on all this. Cheers Jean-Do Selon Rafael de Pelegrini Soares <ra...@rp...>: > Hi Jean-Do, > > Yes, there is a problem with left and right axis label. Actually I was > waiting for vertical drawing fonts to be implemented in FOX, appears > that version 1.6 has it. > You can try a solution, check the code near to line 209 of file FXAxis.= cpp: > > //FIXME : draw vertical text > else if(flags&FXAxis::Left){ > } > else if(flags&FXAxis::Right){ > } > > Maybe you will need to adapt FXAxis::getDefaultWidth() in order to > accomodate the additional space for the label. > If you got something working I would be very glad to add it. > > Cheers, > Rafael > > Jean-Dominique Barnichon escreveu: > > > Rafael, > > have you tried to add a lablel to the left axis of the curves.cpp tes= t > > file using the line : > > view->getLeftAxis()->setLabel("Y-axis"); > > I did and it does not work, apparently only the bottom axis label dar= e > > to show up! > > I 've checked in your code and saw nothing obvious. > > Do you have the same behaviour? > > Any idea where it comes from? > > Jean-Do > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through lo= g > > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUN= K! > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&d= at=3D121642 > > _______________________________________________ > > Fxplot-users mailing list > > Fxp...@li... > > https://lists.sourceforge.net/lists/listinfo/fxplot-users > > > > |
From: Rafael de P. S. <ra...@rp...> - 2006-02-02 23:20:25
|
Hi Jean-Do, Yes, there is a problem with left and right axis label. Actually I was waiting for vertical drawing fonts to be implemented in FOX, appears that version 1.6 has it. You can try a solution, check the code near to line 209 of file FXAxis.cpp: //FIXME : draw vertical text else if(flags&FXAxis::Left){ } else if(flags&FXAxis::Right){ } Maybe you will need to adapt FXAxis::getDefaultWidth() in order to accomodate the additional space for the label. If you got something working I would be very glad to add it. Cheers, Rafael Jean-Dominique Barnichon escreveu: > Rafael, > have you tried to add a lablel to the left axis of the curves.cpp test > file using the line : > view->getLeftAxis()->setLabel("Y-axis"); > I did and it does not work, apparently only the bottom axis label dare > to show up! > I 've checked in your code and saw nothing obvious. > Do you have the same behaviour? > Any idea where it comes from? > Jean-Do > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Fxplot-users mailing list > Fxp...@li... > https://lists.sourceforge.net/lists/listinfo/fxplot-users > |
From: Jean-Dominique B. <jea...@fr...> - 2006-02-02 19:41:55
|
Rafael, have you tried to add a lablel to the left axis of the curves.cpp test file using the line : view->getLeftAxis()->setLabel("Y-axis"); I did and it does not work, apparently only the bottom axis label dare to show up! I 've checked in your code and saw nothing obvious. Do you have the same behaviour? Any idea where it comes from? Jean-Do |
From: Rafael de P. S. <ra...@rp...> - 2006-01-31 12:41:33
|
Hi, I just added release 0.2.1 of FXPlot at http://sourceforge.net/projects/fxplot In this release a bug with the exporting to file dialog was fixed (thanks to Jean-Dominique) and support for FOX-1.6 brach was added (just define FOX_1_6). -- :: MSc(Eng) Rafael de Pelegrini Soares :: ra...@rp... - www.rps.eng.br |
From: Rafael de P. S. <ra...@rp...> - 2006-01-31 12:16:00
|
Hi Jean-Do, Jean-Dominique Barnichon escreveu: > Rafael, > > got the right adress now... > > I'm using FOX 1.5.13, not 1.4.x. > Following your advice, i replaced the old method with their > corresponding new version (FOX 1.5 and above) in the following two lines: > FXString ext=FXPath::extension(file); // old version for FOX 1.4.x: > FXFile::extension(file); > if(FXStat::exists(file)){ // old version for FOX 1.4.x: > if(FXFile::exists(file)){ > Everything now compiles fine on VC7.0 with FOX1.5.13. I'll add some #ifdef's for the 1.6 branch, then in the new release you could just devine the directive FOX_1_6 and the things will work. > Moreover, i 've successfully compiled and run the curves.cpp sample > file you provide with FXPlot 0.2.0. > As this is a good example to start with using FXPlot, i should not > have much difficulties to use FXPlot in my application. > > After having playing a bit with it, i've got few additional questions: > > 1) in the method given below: > long FXPlotBase::onSave(FXObject* obj,FXSelector sel,void* ptr){ > FXString file("Exporting Plot to File"); > FXFileDialog dlg(this,file); > dlg.setFilename(name + ".png"); > why is the png type set by default? > It does not work on my system as i did not compile the png lib (i got > jpeg anf gif support, not png). As a result, when i want to save an > image, it opens a dialog box with the png extension, whereas this > extension is not proposed in the corresponding drop-down liston the > dialog. Yes, it is a bug. I fixed that, will be in the next release. Thank you for reporting. > > 2) the behaviour of the zoom tool is basically to apply a > magnification factor around the picked point. Is there another zoom > tool based on the direct mouse selection of the rectangular region to > be magnified? Currently there is no support for this feature, but it should be not difficult to add. Unfortunatelly I have no time to do it right now. I can help if you want to implement it. > > 3) once you have zoomed, it may be useful to be able to apply some > translation or pan (xy shift) to the graph, instead of going back to > the original image and zooming again at another place. > Is it possible to do that? Not yet, and I think that this is not so easy to implement in an efficient way. I use double buffering to draw the plot, first the plot is drawn into a memory image and then into the window. > > 4) Is it possible to have some interaction (e.g. mouse selection) of > objects that are drawn (such as points and/or lines)? No, but this is very desirable. Again if you want to contribute on this... Cheers. > > Best regards, > Jean-Do > > fxp...@li... a écrit : > >> Send Fxplot-users mailing list submissions to >> fxp...@li... >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.sourceforge.net/lists/listinfo/fxplot-users >> or, via email, send a message with subject or body 'help' to >> fxp...@li... >> >> You can reach the person managing the list at >> fxp...@li... >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Fxplot-users digest..." >> >> >> Today's Topics: >> >> 1. Re: Problem using FXPlot2D (Rafael de Pelegrini Soares) >> >> --__--__-- >> >> Message: 1 >> Date: Sun, 29 Jan 2006 21:25:30 -0200 >> From: Rafael de Pelegrini Soares <ra...@rp...> >> To: Jean-Dominique Barnichon <jea...@fr...>, >> fxp...@li... >> Subject: [Fxplot-users] Re: Problem using FXPlot2D >> >> Hi Jean, >> >> Regargind the mail list, I think you sent the message for the wrong >> address, the correct is fxp...@li.... >> >> About your questions, which version of FOX are you using? >> Currently only version 1.4.X is supported, appears that in new >> versions exists() and extension() have moved from the FXFile. I think >> the new version is FX::FXStat::exists() and >> FX::FXFileAssoc::extension(). >> >> Some time ago I have compiled it with VC7 with no problem. >> Sory for the question, but have you included the FXPlot2D.h header in >> your file? >> Please take a look at the file curves.cpp and check if you could >> generate an executable for it. >> >> With the best wishes, >> Rafael. >> >> Jean-Dominique Barnichon escreveu: >> >> >> >>> I send it again as ther was a problem at the sf mailman >>> >>> Hello Rafael, >>> >>> Remember me..., we had some email exchange mid-december on the Fox >>> list. I was (and i still am) looking for a charting library to do >>> basic 2D plots. >>> >>> I now came to a point in my project where i do need 2D chart, so now >>> it's time for me to get hands on. >>> So, i 've downloaded file FXPlot-0.2.0.zip from sourceforge, and >>> build it as a static library. >>> I'm developing under VC++7.0 with Visual Studio, so i did not use >>> what you recommend on sf web site (i.e. using scons). Instead, i >>> added a project to Fox, added the .h and .cpp files contained in the >>> zip file, and compiled it as a static library. >>> Just to mention, the compiler complained at two points in the file >>> FXPlotBase.cpp : >>> Bug 1) >>> apparently, neither "extension" nor "exists" are method belonging to >>> class FXfile, so >>> at line 48, i replaced >>> FXString ext=FXFile::extension(file); >>> by >>> FXString ext="jpg"; >>> and i commented lines 106 to 109 (test on file existence): >>> /* if(FXFile::exists(file)){ >>> >>> if(MBOX_CLICKED_NO==FXMessageBox::question(this,MBOX_YES_NO,"Overwrite >>> File","Overwrite existing file: %s?",file.text())) >>> return 1; >>> }*/ >>> >>> Having done that, i obtained the lib file >>> >>> Now, i'm trying to use your lib in an example from Fox (obviously >>> after setting correct path for lib and include). >>> So, i try to create a pointer to FXPlot2D with the line : >>> FXPlot2D *2DChart; >>> This line leads to a compiler error syntax error : insufficient >>> suffix number >>> c:\Fox\FxPir3D\MyFile.h(150) : error C2059: syntax error : >>> 'incorrect suffix number ' >>> c:\Fox\FxPir3D\MyFile.h(150) : error C2059: syntax error : 'constant' >>> c:\Fox\FxPir3D\MyFile.h(150) : error C2238: unexpected "jetons" >>> before ';' >>> >>> Any idea? >>> Btw, have you already compiled FXPlot under VC7.0? >>> >>> Thanks for you help. >>> Jean-Do >>> >>> >> >> >> >> >> >> --__--__-- >> >> _______________________________________________ >> Fxplot-users mailing list >> Fxp...@li... >> https://lists.sourceforge.net/lists/listinfo/fxplot-users >> >> >> End of Fxplot-users Digest >> >> >> >> > > -- :: MSc(Eng) Rafael de Pelegrini Soares :: ra...@rp... - www.rps.eng.br |
From: Jean-Dominique B. <jea...@fr...> - 2006-01-30 22:40:56
|
Rafael, got the right adress now... I'm using FOX 1.5.13, not 1.4.x. Following your advice, i replaced the old method with their=20 corresponding new version (FOX 1.5 and above) in the following two lines: FXString ext=3DFXPath::extension(file); // old version for FOX 1.4.x:= =20 FXFile::extension(file); if(FXStat::exists(file)){ // old version for FOX 1.4.x:=20 if(FXFile::exists(file)){ Everything now compiles fine on VC7.0 with FOX1.5.13. Moreover, i 've successfully compiled and run the curves.cpp sample file=20 you provide with FXPlot 0.2.0. As this is a good example to start with using FXPlot, i should not have=20 much difficulties to use FXPlot in my application. After having playing a bit with it, i've got few additional questions: 1) in the method given below: long FXPlotBase::onSave(FXObject* obj,FXSelector sel,void* ptr){ FXString file("Exporting Plot to File"); FXFileDialog dlg(this,file); dlg.setFilename(name + ".png"); why is the png type set by default? It does not work on my system as i did not compile the png lib (i got=20 jpeg anf gif support, not png). As a result, when i want to save an=20 image, it opens a dialog box with the png extension, whereas this=20 extension is not proposed in the corresponding drop-down liston the dialo= g. 2) the behaviour of the zoom tool is basically to apply a magnification=20 factor around the picked point. Is there another zoom tool based on the=20 direct mouse selection of the rectangular region to be magnified? 3) once you have zoomed, it may be useful to be able to apply some=20 translation or pan (xy shift) to the graph, instead of going back to the=20 original image and zooming again at another place. Is it possible to do that? 4) Is it possible to have some interaction (e.g. mouse selection) of=20 objects that are drawn (such as points and/or lines)? Best regards, Jean-Do fxp...@li... a =E9crit : >Send Fxplot-users mailing list submissions to > fxp...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/fxplot-users >or, via email, send a message with subject or body 'help' to > fxp...@li... > >You can reach the person managing the list at > fxp...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Fxplot-users digest..." > > >Today's Topics: > > 1. Re: Problem using FXPlot2D (Rafael de Pelegrini Soares) > >--__--__-- > >Message: 1 >Date: Sun, 29 Jan 2006 21:25:30 -0200 >From: Rafael de Pelegrini Soares <ra...@rp...> >To: Jean-Dominique Barnichon <jea...@fr...>,=20 > fxp...@li... >Subject: [Fxplot-users] Re: Problem using FXPlot2D > >Hi Jean, > >Regargind the mail list, I think you sent the message for the wrong=20 >address, the correct is fxp...@li.... > >About your questions, which version of FOX are you using? >Currently only version 1.4.X is supported, appears that in new versions=20 >exists() and extension() have moved from the FXFile. I think the new=20 >version is FX::FXStat::exists() and FX::FXFileAssoc::extension(). > >Some time ago I have compiled it with VC7 with no problem. >Sory for the question, but have you included the FXPlot2D.h header in=20 >your file? >Please take a look at the file curves.cpp and check if you could=20 >generate an executable for it. > >With the best wishes, >Rafael. > >Jean-Dominique Barnichon escreveu: > > =20 > >>I send it again as ther was a problem at the sf mailman >> >>Hello Rafael, >> >>Remember me..., we had some email exchange mid-december on the Fox=20 >>list. I was (and i still am) looking for a charting library to do=20 >>basic 2D plots. >> >>I now came to a point in my project where i do need 2D chart, so now=20 >>it's time for me to get hands on. >>So, i 've downloaded file FXPlot-0.2.0.zip from sourceforge, and build=20 >>it as a static library. >>I'm developing under VC++7.0 with Visual Studio, so i did not use what=20 >>you recommend on sf web site (i.e. using scons). Instead, i added a=20 >>project to Fox, added the .h and .cpp files contained in the zip file,=20 >>and compiled it as a static library. >>Just to mention, the compiler complained at two points in the file=20 >>FXPlotBase.cpp : >>Bug 1) >>apparently, neither "extension" nor "exists" are method belonging to=20 >>class FXfile, so >>at line 48, i replaced >> FXString ext=3DFXFile::extension(file); >>by >> FXString ext=3D"jpg"; >>and i commented lines 106 to 109 (test on file existence): >>/* if(FXFile::exists(file)){ >> =20 >>if(MBOX_CLICKED_NO=3D=3DFXMessageBox::question(this,MBOX_YES_NO,"Overwr= ite=20 >>File","Overwrite existing file: %s?",file.text())) >> return 1; >> }*/ >> >>Having done that, i obtained the lib file >> >>Now, i'm trying to use your lib in an example from Fox (obviously=20 >>after setting correct path for lib and include). >>So, i try to create a pointer to FXPlot2D with the line : >> FXPlot2D *2DChart; >>This line leads to a compiler error syntax error : insufficient suffix=20 >>number >>c:\Fox\FxPir3D\MyFile.h(150) : error C2059: syntax error : 'incorrect=20 >>suffix number ' >>c:\Fox\FxPir3D\MyFile.h(150) : error C2059: syntax error : 'constant' >>c:\Fox\FxPir3D\MyFile.h(150) : error C2238: unexpected "jetons" before=20 >>';' >> >>Any idea? >>Btw, have you already compiled FXPlot under VC7.0? >> >>Thanks for you help. >>Jean-Do >> >> =20 >> > > > > >--__--__-- > >_______________________________________________ >Fxplot-users mailing list >Fxp...@li... >https://lists.sourceforge.net/lists/listinfo/fxplot-users > > >End of Fxplot-users Digest > > > =20 > |
From: Rafael de P. S. <ra...@rp...> - 2006-01-29 23:25:40
|
Hi Jean, Regargind the mail list, I think you sent the message for the wrong address, the correct is fxp...@li.... About your questions, which version of FOX are you using? Currently only version 1.4.X is supported, appears that in new versions exists() and extension() have moved from the FXFile. I think the new version is FX::FXStat::exists() and FX::FXFileAssoc::extension(). Some time ago I have compiled it with VC7 with no problem. Sory for the question, but have you included the FXPlot2D.h header in your file? Please take a look at the file curves.cpp and check if you could generate an executable for it. With the best wishes, Rafael. Jean-Dominique Barnichon escreveu: > I send it again as ther was a problem at the sf mailman > > Hello Rafael, > > Remember me..., we had some email exchange mid-december on the Fox > list. I was (and i still am) looking for a charting library to do > basic 2D plots. > > I now came to a point in my project where i do need 2D chart, so now > it's time for me to get hands on. > So, i 've downloaded file FXPlot-0.2.0.zip from sourceforge, and build > it as a static library. > I'm developing under VC++7.0 with Visual Studio, so i did not use what > you recommend on sf web site (i.e. using scons). Instead, i added a > project to Fox, added the .h and .cpp files contained in the zip file, > and compiled it as a static library. > Just to mention, the compiler complained at two points in the file > FXPlotBase.cpp : > Bug 1) > apparently, neither "extension" nor "exists" are method belonging to > class FXfile, so > at line 48, i replaced > FXString ext=FXFile::extension(file); > by > FXString ext="jpg"; > and i commented lines 106 to 109 (test on file existence): > /* if(FXFile::exists(file)){ > > if(MBOX_CLICKED_NO==FXMessageBox::question(this,MBOX_YES_NO,"Overwrite > File","Overwrite existing file: %s?",file.text())) > return 1; > }*/ > > Having done that, i obtained the lib file > > Now, i'm trying to use your lib in an example from Fox (obviously > after setting correct path for lib and include). > So, i try to create a pointer to FXPlot2D with the line : > FXPlot2D *2DChart; > This line leads to a compiler error syntax error : insufficient suffix > number > c:\Fox\FxPir3D\MyFile.h(150) : error C2059: syntax error : 'incorrect > suffix number ' > c:\Fox\FxPir3D\MyFile.h(150) : error C2059: syntax error : 'constant' > c:\Fox\FxPir3D\MyFile.h(150) : error C2238: unexpected "jetons" before > ';' > > Any idea? > Btw, have you already compiled FXPlot under VC7.0? > > Thanks for you help. > Jean-Do > |
From: Rafael de P. S. <ra...@rp...> - 2005-08-04 00:53:28
|
Testing, please ignore this. |