pax_global_header00006660000000000000000000000064127330551050014513gustar00rootroot0000000000000052 comment=ead15205febf218d6ed2459f33a31d499f9134f8 laserjock-plotdrop-ead1520/000077500000000000000000000000001273305510500157345ustar00rootroot00000000000000laserjock-plotdrop-ead1520/COPYING000066400000000000000000000431101273305510500167660ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. laserjock-plotdrop-ead1520/Changelog000066400000000000000000000060161273305510500175510ustar00rootroot00000000000000Version 0.5.4: * Fix SF bug #1 - GTK_DEST_DEFAULT_DROP was causing duplicate files on drop * Fix SF bug #2 - added an AppData file (thanks to Ryan Lerch and Richard Hughes) * Fix LP bug #770869 - flip $LIBS and $OBJECTS in Makefile to avoid FTBFS * Some misc. fixes in the About dialog Version 0.5.3: * Jordan Mantha is taking over development, many thanks to John Spray * Update to use GLib and GIO instead of deprecated GnomeVFS * Added support for logarithmic axes (Johannes Marbach) * Updated .desktop file Version 0.5.2: * Debianised version number * Makefile copies extra icon instead of symlinking * Fix about dialog * Set limits on axis adjustments to infinity. * Include csplines, acsplines, bezier, sbezier, unique, frequency styles (Johann Wilhelm) Version 0.51: * Fix uninstallation in Makefile, add DESTDIR stuff for packaging * Fix export dialog remembering where to export to. * Move about dialog out of glade, to avoid requiring glade 2.6 * Guess export format correctly for filenames containing multiple periods * Make errorbars same color as data lines. * For plots with points, prefer to use the nicer shapes, rather than crosses and stars * Fix detection of the absence of gnuplot Version 0.5: * Fixed sensitivity of plot/export buttons * Make export guess format to be used from extension given * Make export remember user's desired format during session * Add XFig format to export * Allow more decimal places in limits values * Add "Use super/subscripts" checkbox, controls whether gnuplot uses 'enhanced' output modes. * Check for GNUPlot at startup, complain if it's absent * Display GNUPlot's output in case of error * Enable startup notification in .desktop file * Rearrange UI, add menu bars * Add about dialog * Add "Add file" dialog * Fix non-ASCII characters in titles and captions, now anything in ISO-8859-1 should work. No full Unicode, blame gnuplot. * Change GNUPlot to gnuplot in UI and homepage. Version 0.4: * Fixed setting limits in non-english locales * Added "Show Zero Axes" check button * Fixed some memory leaks * Handle relative paths passed as command line arguments * Escaped title/caption strings when passing to gnuplot (now one can have equotation marks) * Tell the user when GNUPlot failed * Add crude error bar support * Add format selection when exporting, initially PS, EPS and color variants, SVG and PNG. * Updated COPYING with the FSF's new address * Added help dialog for 'Extra' tab * When compiled with GTK+ >= 2.8, prompt for confirmation when overwriting file on export. Version 0.3: * Add "Series" column to allow plotting of different columns in a datafile. * Change GNUPlot style command from "set style data" to "set data style" to be compatible with older versions. * Modify .desktop file to allow dragging one or more datafiles onto it and have them be opened. Version 0.2: * Add limits UI * Add UI for arbitrary commands * Open data files on double click * Add icon for window and .desktop file Version 0.1: * Initial release laserjock-plotdrop-ead1520/Example Data 1000066400000000000000000001017351273305510500202340ustar00rootroot00000000000000# n_steps = 200 #dimensions 5x128x128 #Jfm = 1.000000 #Jafm = -0.500000 #Jint = 0.500000 #kT = 0.200000 #H = 0.000000 #D = 0.700000defect_layer = -1 #seed=722809 #dz=0.100000 #Loop 2 0.500000 0.285638 0.000039 0.944086 0.000024 0.405645 0.000161 0.645031 0.000329 0.495000 0.284720 0.000042 0.944424 0.000023 0.401513 0.000174 0.641780 0.000331 0.490000 0.284131 0.000043 0.943765 0.000022 0.399598 0.000178 0.640630 0.000345 0.485000 0.283612 0.000044 0.943875 0.000027 0.397333 0.000182 0.637260 0.000357 0.480000 0.282961 0.000039 0.943501 0.000031 0.394917 0.000163 0.636472 0.000370 0.475000 0.281998 0.000038 0.942852 0.000030 0.391430 0.000160 0.632488 0.000329 0.470000 0.281364 0.000038 0.942868 0.000023 0.388758 0.000160 0.628920 0.000365 0.465000 0.280633 0.000042 0.942906 0.000024 0.385662 0.000176 0.626022 0.000355 0.460000 0.280051 0.000045 0.943476 0.000030 0.382748 0.000181 0.621439 0.000368 0.455000 0.279097 0.000039 0.942972 0.000030 0.379174 0.000165 0.620474 0.000309 0.450000 0.278269 0.000035 0.941935 0.000039 0.376573 0.000148 0.617796 0.000340 0.445000 0.278150 0.000037 0.943291 0.000026 0.374939 0.000152 0.615817 0.000335 0.440000 0.277491 0.000039 0.942966 0.000035 0.372451 0.000152 0.613500 0.000335 0.435000 0.276600 0.000039 0.942959 0.000024 0.368722 0.000162 0.609628 0.000332 0.430000 0.275641 0.000037 0.942020 0.000029 0.365490 0.000150 0.606570 0.000324 0.425000 0.275198 0.000035 0.942137 0.000019 0.363539 0.000146 0.604577 0.000327 0.420000 0.274406 0.000042 0.941510 0.000020 0.360744 0.000178 0.602383 0.000327 0.415000 0.274003 0.000038 0.940790 0.000022 0.359660 0.000161 0.600289 0.000342 0.410000 0.273423 0.000033 0.941693 0.000026 0.356471 0.000132 0.595827 0.000285 0.405000 0.272788 0.000034 0.941221 0.000034 0.354208 0.000138 0.593298 0.000327 0.400000 0.271945 0.000039 0.941287 0.000026 0.350621 0.000156 0.592348 0.000319 0.395000 0.271240 0.000035 0.940866 0.000022 0.348022 0.000143 0.590164 0.000308 0.390000 0.270716 0.000034 0.940335 0.000024 0.346268 0.000143 0.589208 0.000290 0.385000 0.270064 0.000039 0.939642 0.000026 0.344120 0.000165 0.587498 0.000292 0.380000 0.269125 0.000035 0.939354 0.000032 0.340426 0.000139 0.584200 0.000319 0.375000 0.268702 0.000034 0.939909 0.000062 0.338189 0.000145 0.582124 0.000314 0.370000 0.268214 0.000036 0.940546 0.000039 0.335610 0.000144 0.579860 0.000336 0.365000 0.267915 0.000031 0.940912 0.000036 0.334052 0.000126 0.578087 0.000290 0.360000 0.267161 0.000035 0.940396 0.000025 0.331323 0.000144 0.575677 0.000286 0.355000 0.266684 0.000033 0.939762 0.000031 0.329858 0.000136 0.574078 0.000285 0.350000 0.266195 0.000033 0.939911 0.000030 0.327685 0.000137 0.570975 0.000261 0.345000 0.265428 0.000032 0.939303 0.000022 0.324980 0.000133 0.570218 0.000298 0.340000 0.264859 0.000033 0.939119 0.000028 0.322749 0.000136 0.566383 0.000300 0.335000 0.264656 0.000035 0.939233 0.000037 0.321806 0.000148 0.564479 0.000295 0.330000 0.264117 0.000036 0.938703 0.000022 0.319991 0.000147 0.561995 0.000284 0.325000 0.263544 0.000029 0.938322 0.000020 0.317907 0.000122 0.561353 0.000286 0.320000 0.263194 0.000029 0.938775 0.000019 0.316061 0.000122 0.559938 0.000299 0.315000 0.262717 0.000032 0.939151 0.000021 0.313750 0.000136 0.558163 0.000320 0.310000 0.262060 0.000033 0.938521 0.000036 0.311523 0.000143 0.556603 0.000306 0.305000 0.261509 0.000032 0.938726 0.000017 0.309044 0.000132 0.554807 0.000257 0.300000 0.261021 0.000032 0.938314 0.000018 0.307345 0.000134 0.554103 0.000298 0.295000 0.260614 0.000033 0.938618 0.000035 0.305384 0.000140 0.553243 0.000283 0.290000 0.259774 0.000032 0.937698 0.000024 0.302634 0.000133 0.549273 0.000281 0.285000 0.259437 0.000032 0.937399 0.000017 0.301476 0.000129 0.548048 0.000271 0.280000 0.258825 0.000032 0.937489 0.000024 0.298834 0.000130 0.544427 0.000233 0.275000 0.258372 0.000031 0.937191 0.000030 0.297187 0.000128 0.544200 0.000285 0.270000 0.257877 0.000034 0.936701 0.000031 0.295525 0.000138 0.544175 0.000281 0.265000 0.257045 0.000034 0.936609 0.000027 0.292116 0.000149 0.541743 0.000303 0.260000 0.256676 0.000033 0.936545 0.000033 0.290622 0.000136 0.540665 0.000266 0.255000 0.256079 0.000030 0.936493 0.000021 0.288163 0.000126 0.538637 0.000246 0.250000 0.255486 0.000029 0.935877 0.000014 0.286198 0.000121 0.535800 0.000263 0.245000 0.254566 0.000032 0.935420 0.000020 0.282727 0.000134 0.534934 0.000263 0.240000 0.253954 0.000030 0.935989 0.000025 0.279684 0.000120 0.532213 0.000241 0.235000 0.253524 0.000033 0.935243 0.000039 0.278508 0.000137 0.532003 0.000264 0.230000 0.252841 0.000034 0.935392 0.000057 0.275522 0.000128 0.525454 0.000282 0.225000 0.252203 0.000031 0.933693 0.000023 0.274272 0.000128 0.523036 0.000276 0.220000 0.251701 0.000032 0.933668 0.000021 0.272189 0.000136 0.522997 0.000275 0.215000 0.251287 0.000035 0.933961 0.000028 0.270209 0.000141 0.521894 0.000309 0.210000 0.250466 0.000040 0.934360 0.000031 0.266436 0.000163 0.518676 0.000289 0.205000 0.249898 0.000036 0.933963 0.000051 0.264387 0.000145 0.517336 0.000296 0.200000 0.249545 0.000038 0.934279 0.000027 0.262646 0.000155 0.515755 0.000296 0.195000 0.248587 0.000037 0.933813 0.000030 0.259023 0.000156 0.514343 0.000267 0.190000 0.248231 0.000038 0.932822 0.000031 0.258360 0.000148 0.511435 0.000295 0.185000 0.247338 0.000034 0.931977 0.000032 0.255328 0.000141 0.508791 0.000322 0.180000 0.246581 0.000035 0.932184 0.000024 0.251984 0.000145 0.506975 0.000288 0.175000 0.245921 0.000032 0.932877 0.000036 0.248635 0.000136 0.502143 0.000332 0.170000 0.245484 0.000032 0.932400 0.000035 0.247206 0.000134 0.498904 0.000301 0.165000 0.244680 0.000042 0.931843 0.000022 0.244303 0.000174 0.497586 0.000331 0.160000 0.243936 0.000035 0.931746 0.000021 0.241267 0.000146 0.494282 0.000309 0.155000 0.243418 0.000038 0.932124 0.000026 0.238782 0.000158 0.493286 0.000293 0.150000 0.242422 0.000039 0.931341 0.000046 0.235263 0.000154 0.492326 0.000285 0.145000 0.241754 0.000037 0.930913 0.000033 0.232823 0.000152 0.488489 0.000273 0.140000 0.240910 0.000041 0.930900 0.000029 0.229298 0.000173 0.487570 0.000302 0.135000 0.240059 0.000037 0.930363 0.000035 0.226182 0.000156 0.485770 0.000311 0.130000 0.239194 0.000040 0.930831 0.000043 0.222167 0.000173 0.478378 0.000328 0.125000 0.238257 0.000038 0.930189 0.000030 0.218778 0.000153 0.478883 0.000296 0.120000 0.237499 0.000041 0.930168 0.000035 0.215622 0.000167 0.479764 0.000309 0.115000 0.236322 0.000039 0.928820 0.000027 0.211818 0.000161 0.478077 0.000311 0.110000 0.235789 0.000041 0.929718 0.000025 0.208834 0.000171 0.475737 0.000328 0.105000 0.234958 0.000046 0.929618 0.000029 0.205437 0.000192 0.470470 0.000336 0.100000 0.233863 0.000042 0.929019 0.000025 0.201351 0.000178 0.465486 0.000329 0.095000 0.232711 0.000045 0.928979 0.000048 0.196557 0.000183 0.460881 0.000299 0.090000 0.231664 0.000037 0.927736 0.000040 0.193212 0.000160 0.460616 0.000288 0.085000 0.230840 0.000044 0.926604 0.000059 0.190709 0.000171 0.459078 0.000351 0.080000 0.229996 0.000040 0.927034 0.000049 0.186811 0.000171 0.452406 0.000345 0.075000 0.229190 0.000042 0.927243 0.000035 0.183260 0.000188 0.448177 0.000313 0.070000 0.228097 0.000049 0.927777 0.000036 0.178232 0.000194 0.447982 0.000306 0.065000 0.227252 0.000044 0.926845 0.000039 0.175473 0.000183 0.448280 0.000298 0.060000 0.226351 0.000041 0.925938 0.000020 0.172459 0.000171 0.444239 0.000351 0.055000 0.225127 0.000042 0.925192 0.000042 0.167956 0.000176 0.439200 0.000341 0.050000 0.224190 0.000044 0.925682 0.000023 0.163620 0.000178 0.435306 0.000337 0.045000 0.223314 0.000043 0.925005 0.000024 0.160516 0.000179 0.432816 0.000321 0.040000 0.222449 0.000045 0.925310 0.000026 0.156640 0.000187 0.433122 0.000333 0.035000 0.221148 0.000043 0.925133 0.000033 0.151336 0.000179 0.429852 0.000321 0.030000 0.219943 0.000047 0.925075 0.000036 0.146338 0.000195 0.426330 0.000342 0.025000 0.219279 0.000045 0.924973 0.000035 0.143640 0.000181 0.425228 0.000332 0.020000 0.218292 0.000047 0.924403 0.000060 0.139983 0.000185 0.420874 0.000331 0.015000 0.216777 0.000045 0.922431 0.000027 0.135288 0.000182 0.417217 0.000325 0.010000 0.215871 0.000044 0.922263 0.000020 0.131634 0.000180 0.415507 0.000303 0.005000 0.214488 0.000046 0.921909 0.000064 0.126135 0.000183 0.412997 0.000334 0.000000 0.213147 0.000047 0.919995 0.000030 0.122119 0.000188 0.409347 0.000330 -0.005000 0.211835 0.000051 0.919942 0.000044 0.116668 0.000202 0.406724 0.000309 -0.010000 0.211273 0.000047 0.920288 0.000037 0.114021 0.000190 0.405296 0.000308 -0.015000 0.209801 0.000038 0.919949 0.000018 0.108139 0.000158 0.401141 0.000285 -0.020000 0.208307 0.000054 0.918373 0.000074 0.103202 0.000192 0.396330 0.000318 -0.025000 0.207023 0.000043 0.917961 0.000028 0.098168 0.000182 0.393668 0.000322 -0.030000 0.205937 0.000045 0.916711 0.000040 0.094665 0.000185 0.392752 0.000314 -0.035000 0.205322 0.000046 0.918190 0.000031 0.090850 0.000195 0.390183 0.000310 -0.040000 0.203753 0.000054 0.916695 0.000022 0.085527 0.000226 0.387580 0.000314 -0.045000 0.202773 0.000050 0.917777 0.000024 0.080516 0.000207 0.383079 0.000300 -0.050000 0.201644 0.000044 0.916975 0.000032 0.076456 0.000183 0.382036 0.000305 -0.055000 0.200642 0.000043 0.916535 0.000037 0.072626 0.000178 0.378910 0.000302 -0.060000 0.199260 0.000045 0.915371 0.000034 0.067812 0.000184 0.379530 0.000295 -0.065000 0.198202 0.000042 0.913940 0.000042 0.064578 0.000170 0.376535 0.000291 -0.070000 0.197304 0.000044 0.914115 0.000033 0.060669 0.000185 0.374397 0.000279 -0.075000 0.196351 0.000045 0.913948 0.000029 0.056816 0.000188 0.371769 0.000303 -0.080000 0.195165 0.000042 0.912983 0.000060 0.052656 0.000169 0.366804 0.000307 -0.085000 0.194023 0.000051 0.913324 0.000024 0.047586 0.000205 0.367580 0.000299 -0.090000 0.192507 0.000041 0.912416 0.000034 0.041997 0.000174 0.366371 0.000288 -0.095000 0.191566 0.000049 0.912733 0.000032 0.037788 0.000203 0.365595 0.000293 -0.100000 0.190118 0.000040 0.910331 0.000054 0.033734 0.000167 0.359317 0.000293 -0.105000 0.188804 0.000044 0.908625 0.000040 0.029658 0.000172 0.357048 0.000292 -0.110000 0.187929 0.000040 0.907991 0.000033 0.026525 0.000172 0.354965 0.000281 -0.115000 0.186606 0.000050 0.907255 0.000062 0.021599 0.000180 0.350127 0.000261 -0.120000 0.185302 0.000038 0.906599 0.000070 0.016684 0.000158 0.347660 0.000253 -0.125000 0.184183 0.000040 0.903897 0.000045 0.014260 0.000162 0.347289 0.000294 -0.130000 0.183403 0.000044 0.903741 0.000033 0.011121 0.000176 0.344930 0.000277 -0.135000 0.182088 0.000044 0.902469 0.000039 0.006680 0.000176 0.341782 0.000283 -0.140000 0.181235 0.000040 0.902146 0.000042 0.003377 0.000171 0.340998 0.000285 -0.145000 0.180703 0.000044 0.902610 0.000054 0.000756 0.000168 0.338534 0.000270 -0.150000 0.179256 0.000043 0.900414 0.000060 -0.003465 0.000161 0.338151 0.000296 -0.155000 0.177539 0.000042 0.898286 0.000041 -0.008873 0.000168 0.330283 0.000346 -0.160000 0.175994 0.000041 0.894755 0.000063 -0.012388 0.000158 0.328140 0.000278 -0.165000 0.174210 0.000046 0.891568 0.000077 -0.017194 0.000166 0.325733 0.000272 -0.170000 0.172715 0.000043 0.888473 0.000068 -0.020864 0.000162 0.325915 0.000295 -0.175000 0.171003 0.000041 0.885314 0.000033 -0.025390 0.000162 0.324388 0.000293 -0.180000 0.169811 0.000042 0.883232 0.000056 -0.028636 0.000161 0.319684 0.000307 -0.185000 0.168302 0.000041 0.880031 0.000058 -0.032278 0.000159 0.315532 0.000306 -0.190000 0.167053 0.000038 0.878799 0.000056 -0.036480 0.000140 0.313959 0.000320 -0.195000 0.165832 0.000051 0.877193 0.000095 -0.040247 0.000164 0.309378 0.000317 -0.200000 0.163882 0.000036 0.872160 0.000051 -0.044199 0.000146 0.306915 0.000275 -0.205000 0.162864 0.000049 0.870202 0.000094 -0.046827 0.000166 0.303467 0.000313 -0.210000 0.161056 0.000046 0.864657 0.000116 -0.049753 0.000160 0.298227 0.000346 -0.215000 0.158694 0.000059 0.858668 0.000131 -0.054633 0.000177 0.291999 0.000310 -0.220000 0.156914 0.000052 0.854448 0.000141 -0.058554 0.000153 0.288487 0.000323 -0.225000 0.154905 0.000046 0.848076 0.000113 -0.061629 0.000145 0.286383 0.000306 -0.230000 0.152707 0.000051 0.841820 0.000167 -0.065598 0.000148 0.279485 0.000372 -0.235000 0.150306 0.000061 0.834017 0.000199 -0.069116 0.000156 0.275049 0.000364 -0.240000 0.146148 0.000080 0.821313 0.000321 -0.075894 0.000139 0.263725 0.000328 -0.245000 0.142613 0.000057 0.808553 0.000226 -0.080014 0.000143 0.254596 0.000322 -0.250000 0.138909 0.000080 0.794247 0.000342 -0.083542 0.000142 0.248167 0.000343 -0.255000 0.133966 0.000126 0.776044 0.000501 -0.088999 0.000166 0.234844 0.000466 -0.260000 0.127544 0.000147 0.751921 0.000576 -0.095693 0.000188 0.217857 0.000534 -0.265000 0.119412 0.000177 0.719855 0.000698 -0.102892 0.000196 0.198651 0.000520 -0.270000 0.110699 0.000202 0.684808 0.000836 -0.110031 0.000191 0.178009 0.000600 -0.275000 0.099859 0.000227 0.639951 0.000999 -0.117859 0.000189 0.152188 0.000604 -0.280000 0.087062 0.000300 0.584907 0.001329 -0.125352 0.000193 0.124325 0.000653 -0.285000 0.070643 0.000336 0.515163 0.001445 -0.135700 0.000245 0.091860 0.000719 -0.290000 0.052955 0.000370 0.439653 0.001633 -0.146537 0.000225 0.054029 0.000786 -0.295000 0.033521 0.000417 0.355823 0.001892 -0.157713 0.000209 0.017157 0.000832 -0.300000 0.010296 0.000490 0.254752 0.002144 -0.170329 0.000292 -0.029298 0.000990 -0.305000 -0.015456 0.000561 0.141936 0.002499 -0.183686 0.000290 -0.078081 0.001024 -0.310000 -0.044371 0.000586 0.017812 0.002549 -0.200825 0.000345 -0.135197 0.001304 -0.315000 -0.074112 0.000580 -0.111940 0.002607 -0.216703 0.000281 -0.192410 0.001080 -0.320000 -0.103782 0.000599 -0.242002 0.002654 -0.232028 0.000316 -0.250343 0.001385 -0.325000 -0.133675 0.000576 -0.373193 0.002625 -0.247343 0.000256 -0.309206 0.001025 -0.330000 -0.161772 0.000546 -0.497711 0.002465 -0.260719 0.000264 -0.360917 0.001035 -0.335000 -0.187322 0.000449 -0.608602 0.001990 -0.274848 0.000255 -0.414048 0.000901 -0.340000 -0.207759 0.000393 -0.697310 0.001712 -0.286141 0.000246 -0.453549 0.000800 -0.345000 -0.225706 0.000304 -0.772878 0.001334 -0.298010 0.000205 -0.486595 0.000542 -0.350000 -0.238830 0.000232 -0.830904 0.001010 -0.304375 0.000184 -0.508608 0.000568 -0.355000 -0.249416 0.000187 -0.874355 0.000798 -0.312315 0.000174 -0.530735 0.000356 -0.360000 -0.256358 0.000103 -0.903089 0.000433 -0.317325 0.000154 -0.543953 0.000362 -0.365000 -0.260825 0.000070 -0.919536 0.000239 -0.322256 0.000161 -0.555279 0.000339 -0.370000 -0.263643 0.000060 -0.928432 0.000172 -0.326610 0.000166 -0.563364 0.000310 -0.375000 -0.265939 0.000040 -0.935233 0.000086 -0.330529 0.000150 -0.568545 0.000326 -0.380000 -0.267761 0.000035 -0.939149 0.000064 -0.334883 0.000143 -0.571498 0.000309 -0.385000 -0.268573 0.000038 -0.940483 0.000021 -0.337165 0.000159 -0.573052 0.000324 -0.390000 -0.269551 0.000036 -0.940837 0.000039 -0.340966 0.000150 -0.577412 0.000329 -0.395000 -0.270252 0.000037 -0.940656 0.000043 -0.344055 0.000146 -0.577453 0.000308 -0.400000 -0.270919 0.000037 -0.941396 0.000023 -0.346231 0.000154 -0.583292 0.000281 -0.405000 -0.271752 0.000036 -0.940929 0.000031 -0.350113 0.000149 -0.583851 0.000320 -0.410000 -0.272432 0.000037 -0.941307 0.000032 -0.352644 0.000146 -0.587151 0.000324 -0.415000 -0.273508 0.000041 -0.941861 0.000023 -0.356687 0.000171 -0.590039 0.000345 -0.420000 -0.274398 0.000038 -0.942120 0.000019 -0.360200 0.000158 -0.594536 0.000366 -0.425000 -0.275125 0.000040 -0.942399 0.000031 -0.363013 0.000164 -0.598688 0.000338 -0.430000 -0.275735 0.000039 -0.942137 0.000025 -0.365787 0.000161 -0.601262 0.000387 -0.435000 -0.276367 0.000037 -0.942387 0.000030 -0.368226 0.000149 -0.604050 0.000348 -0.440000 -0.276784 0.000041 -0.942007 0.000028 -0.370293 0.000165 -0.604304 0.000381 -0.445000 -0.277654 0.000035 -0.942335 0.000042 -0.373661 0.000146 -0.606654 0.000360 -0.450000 -0.278517 0.000041 -0.941765 0.000041 -0.377754 0.000160 -0.611823 0.000367 -0.455000 -0.279583 0.000038 -0.943075 0.000034 -0.381124 0.000161 -0.616897 0.000355 -0.460000 -0.280636 0.000039 -0.943026 0.000032 -0.385574 0.000160 -0.622551 0.000359 -0.465000 -0.281346 0.000038 -0.943570 0.000044 -0.388095 0.000150 -0.623471 0.000341 -0.470000 -0.281972 0.000042 -0.943043 0.000025 -0.391157 0.000174 -0.625002 0.000359 -0.475000 -0.282826 0.000041 -0.943343 0.000026 -0.394484 0.000165 -0.629776 0.000356 -0.480000 -0.283530 0.000042 -0.943284 0.000027 -0.397484 0.000176 -0.634343 0.000383 -0.485000 -0.284188 0.000039 -0.943578 0.000032 -0.399994 0.000157 -0.637087 0.000357 -0.490000 -0.285008 0.000038 -0.944031 0.000026 -0.403050 0.000160 -0.637627 0.000362 -0.495000 -0.285482 0.000043 -0.943480 0.000047 -0.405499 0.000170 -0.640123 0.000337 -0.500000 -0.286751 0.000040 -0.944134 0.000029 -0.410269 0.000161 -0.644821 0.000328 -0.500000 -0.286488 0.000038 -0.944266 0.000020 -0.409056 0.000160 -0.644501 0.000327 -0.495000 -0.285702 0.000040 -0.943831 0.000019 -0.406125 0.000167 -0.640337 0.000351 -0.490000 -0.284981 0.000039 -0.943872 0.000025 -0.403072 0.000162 -0.638473 0.000352 -0.485000 -0.284295 0.000040 -0.943821 0.000026 -0.400240 0.000159 -0.635359 0.000349 -0.480000 -0.283907 0.000041 -0.943806 0.000036 -0.398627 0.000165 -0.634039 0.000373 -0.475000 -0.282951 0.000037 -0.943058 0.000030 -0.395248 0.000159 -0.629774 0.000352 -0.470000 -0.282367 0.000036 -0.942877 0.000026 -0.392952 0.000154 -0.626303 0.000369 -0.465000 -0.281462 0.000040 -0.942835 0.000027 -0.389198 0.000163 -0.623021 0.000331 -0.460000 -0.280885 0.000035 -0.943115 0.000043 -0.386545 0.000145 -0.621030 0.000312 -0.455000 -0.280105 0.000037 -0.942819 0.000017 -0.383526 0.000154 -0.618147 0.000360 -0.450000 -0.279743 0.000041 -0.943094 0.000028 -0.381776 0.000168 -0.618249 0.000369 -0.445000 -0.279065 0.000038 -0.942715 0.000029 -0.379252 0.000157 -0.615606 0.000350 -0.440000 -0.278190 0.000035 -0.942160 0.000014 -0.376053 0.000145 -0.611480 0.000346 -0.435000 -0.277588 0.000040 -0.942260 0.000028 -0.373449 0.000159 -0.605651 0.000341 -0.430000 -0.276723 0.000035 -0.941468 0.000020 -0.370486 0.000144 -0.603684 0.000310 -0.425000 -0.276020 0.000039 -0.941703 0.000022 -0.367343 0.000160 -0.600872 0.000340 -0.420000 -0.275731 0.000036 -0.942074 0.000020 -0.365824 0.000148 -0.599386 0.000334 -0.415000 -0.274958 0.000036 -0.941520 0.000022 -0.363050 0.000149 -0.597562 0.000300 -0.410000 -0.274444 0.000037 -0.941526 0.000031 -0.360889 0.000157 -0.595532 0.000334 -0.405000 -0.273667 0.000037 -0.941292 0.000024 -0.357831 0.000157 -0.595388 0.000322 -0.400000 -0.273276 0.000037 -0.941656 0.000023 -0.355890 0.000153 -0.593454 0.000294 -0.395000 -0.272584 0.000039 -0.941637 0.000027 -0.353004 0.000154 -0.589901 0.000340 -0.390000 -0.272005 0.000034 -0.940975 0.000024 -0.351132 0.000145 -0.586650 0.000310 -0.385000 -0.271076 0.000037 -0.940196 0.000027 -0.347895 0.000150 -0.584626 0.000332 -0.380000 -0.270560 0.000038 -0.940414 0.000026 -0.345549 0.000156 -0.582459 0.000313 -0.375000 -0.270028 0.000033 -0.940065 0.000029 -0.343615 0.000138 -0.580965 0.000327 -0.370000 -0.269317 0.000037 -0.939962 0.000026 -0.340721 0.000151 -0.576897 0.000317 -0.365000 -0.268634 0.000037 -0.939556 0.000023 -0.338200 0.000151 -0.573906 0.000340 -0.360000 -0.268220 0.000035 -0.939654 0.000048 -0.336381 0.000143 -0.572627 0.000316 -0.355000 -0.267749 0.000033 -0.939893 0.000017 -0.334210 0.000140 -0.572254 0.000312 -0.350000 -0.267335 0.000036 -0.940144 0.000033 -0.332263 0.000151 -0.570632 0.000309 -0.345000 -0.266844 0.000032 -0.939900 0.000018 -0.330413 0.000134 -0.567566 0.000292 -0.340000 -0.266758 0.000034 -0.940631 0.000035 -0.329437 0.000136 -0.564298 0.000281 -0.335000 -0.266032 0.000039 -0.939996 0.000072 -0.326927 0.000138 -0.565140 0.000317 -0.330000 -0.265301 0.000032 -0.939457 0.000031 -0.324317 0.000136 -0.559589 0.000302 -0.325000 -0.264707 0.000031 -0.939195 0.000053 -0.322049 0.000131 -0.557736 0.000283 -0.320000 -0.264170 0.000033 -0.938720 0.000018 -0.320196 0.000141 -0.558608 0.000245 -0.315000 -0.263626 0.000028 -0.938485 0.000024 -0.318114 0.000120 -0.555544 0.000280 -0.310000 -0.263111 0.000032 -0.938868 0.000023 -0.315637 0.000138 -0.553617 0.000282 -0.305000 -0.262522 0.000031 -0.937977 0.000026 -0.313917 0.000129 -0.553432 0.000298 -0.300000 -0.261928 0.000031 -0.938144 0.000047 -0.311286 0.000127 -0.549280 0.000272 -0.295000 -0.261151 0.000030 -0.937356 0.000020 -0.308693 0.000127 -0.547794 0.000255 -0.290000 -0.260780 0.000032 -0.937914 0.000040 -0.306671 0.000137 -0.546437 0.000294 -0.285000 -0.260326 0.000029 -0.937689 0.000043 -0.304956 0.000119 -0.543028 0.000259 -0.280000 -0.259953 0.000034 -0.937368 0.000016 -0.303662 0.000137 -0.542414 0.000304 -0.275000 -0.259155 0.000035 -0.936499 0.000033 -0.301048 0.000138 -0.539647 0.000342 -0.270000 -0.258297 0.000036 -0.935598 0.000038 -0.298205 0.000137 -0.536636 0.000300 -0.265000 -0.258348 0.000029 -0.936038 0.000030 -0.298053 0.000126 -0.538202 0.000285 -0.260000 -0.257809 0.000030 -0.935993 0.000039 -0.295830 0.000123 -0.534183 0.000273 -0.255000 -0.257142 0.000035 -0.934333 0.000036 -0.294431 0.000137 -0.532718 0.000256 -0.250000 -0.256199 0.000033 -0.934931 0.000035 -0.289975 0.000140 -0.529924 0.000278 -0.245000 -0.255651 0.000029 -0.936180 0.000028 -0.286633 0.000124 -0.530928 0.000281 -0.240000 -0.255382 0.000030 -0.935762 0.000034 -0.285859 0.000122 -0.528532 0.000269 -0.235000 -0.254390 0.000032 -0.934867 0.000039 -0.282451 0.000125 -0.526925 0.000277 -0.230000 -0.253899 0.000035 -0.934795 0.000021 -0.280454 0.000146 -0.522818 0.000264 -0.225000 -0.253411 0.000035 -0.935543 0.000029 -0.277781 0.000147 -0.522036 0.000299 -0.220000 -0.252406 0.000039 -0.934872 0.000026 -0.274136 0.000160 -0.519239 0.000304 -0.215000 -0.251813 0.000027 -0.934737 0.000024 -0.271765 0.000111 -0.516628 0.000236 -0.210000 -0.251370 0.000032 -0.934560 0.000036 -0.270058 0.000140 -0.513836 0.000247 -0.205000 -0.250841 0.000038 -0.934089 0.000036 -0.268234 0.000156 -0.510296 0.000309 -0.200000 -0.250088 0.000035 -0.933172 0.000038 -0.265847 0.000138 -0.510250 0.000350 -0.195000 -0.249653 0.000035 -0.933271 0.000041 -0.263944 0.000144 -0.507947 0.000328 -0.190000 -0.249328 0.000035 -0.933981 0.000021 -0.261987 0.000145 -0.504263 0.000296 -0.185000 -0.248598 0.000036 -0.933605 0.000034 -0.259242 0.000145 -0.506648 0.000312 -0.180000 -0.247932 0.000039 -0.933381 0.000034 -0.256638 0.000155 -0.503089 0.000273 -0.175000 -0.247207 0.000038 -0.932323 0.000023 -0.254486 0.000153 -0.498007 0.000311 -0.170000 -0.246580 0.000038 -0.932298 0.000042 -0.251881 0.000153 -0.494087 0.000284 -0.165000 -0.245877 0.000038 -0.932555 0.000027 -0.248722 0.000160 -0.493826 0.000319 -0.160000 -0.244949 0.000037 -0.932296 0.000039 -0.245050 0.000151 -0.491587 0.000309 -0.155000 -0.244079 0.000039 -0.932150 0.000034 -0.241530 0.000158 -0.487338 0.000324 -0.150000 -0.243336 0.000037 -0.931375 0.000035 -0.239064 0.000150 -0.484826 0.000304 -0.145000 -0.241938 0.000037 -0.929881 0.000025 -0.234459 0.000153 -0.478432 0.000311 -0.140000 -0.241744 0.000041 -0.930805 0.000053 -0.232873 0.000157 -0.476595 0.000321 -0.135000 -0.240845 0.000037 -0.930477 0.000021 -0.229382 0.000154 -0.475854 0.000305 -0.130000 -0.240034 0.000037 -0.930809 0.000026 -0.225704 0.000155 -0.473257 0.000329 -0.125000 -0.239125 0.000038 -0.930103 0.000026 -0.222490 0.000160 -0.468032 0.000311 -0.120000 -0.238304 0.000040 -0.929797 0.000013 -0.219303 0.000166 -0.466708 0.000326 -0.115000 -0.237414 0.000041 -0.929323 0.000047 -0.215975 0.000170 -0.465696 0.000314 -0.110000 -0.236327 0.000043 -0.928642 0.000054 -0.211990 0.000173 -0.464062 0.000316 -0.105000 -0.235825 0.000040 -0.929115 0.000030 -0.209489 0.000164 -0.460378 0.000327 -0.100000 -0.234919 0.000042 -0.928675 0.000025 -0.206065 0.000176 -0.458781 0.000309 -0.095000 -0.234255 0.000046 -0.928291 0.000038 -0.203605 0.000194 -0.456402 0.000341 -0.090000 -0.233265 0.000038 -0.927478 0.000021 -0.200136 0.000158 -0.452810 0.000333 -0.085000 -0.232643 0.000042 -0.928496 0.000035 -0.196678 0.000176 -0.453216 0.000336 -0.080000 -0.231641 0.000043 -0.928737 0.000028 -0.192279 0.000181 -0.448645 0.000320 -0.075000 -0.230445 0.000042 -0.928144 0.000036 -0.187764 0.000175 -0.446392 0.000340 -0.070000 -0.229377 0.000043 -0.927599 0.000027 -0.183746 0.000181 -0.443672 0.000322 -0.065000 -0.228449 0.000047 -0.927479 0.000024 -0.179960 0.000192 -0.439815 0.000335 -0.060000 -0.226755 0.000047 -0.926153 0.000038 -0.173972 0.000190 -0.435289 0.000334 -0.055000 -0.225911 0.000043 -0.926631 0.000034 -0.170036 0.000176 -0.430714 0.000319 -0.050000 -0.225102 0.000045 -0.926105 0.000032 -0.167085 0.000194 -0.429331 0.000335 -0.045000 -0.223857 0.000046 -0.925592 0.000037 -0.162302 0.000184 -0.426447 0.000328 -0.040000 -0.222569 0.000046 -0.924577 0.000034 -0.157754 0.000191 -0.421273 0.000336 -0.035000 -0.221763 0.000047 -0.924484 0.000043 -0.154457 0.000196 -0.418151 0.000329 -0.030000 -0.221000 0.000054 -0.925215 0.000037 -0.150647 0.000223 -0.419540 0.000361 -0.025000 -0.219951 0.000045 -0.924833 0.000026 -0.146571 0.000186 -0.416149 0.000315 -0.020000 -0.218747 0.000048 -0.923690 0.000025 -0.142484 0.000198 -0.411751 0.000377 -0.015000 -0.218109 0.000043 -0.923605 0.000033 -0.139883 0.000183 -0.407165 0.000326 -0.010000 -0.216939 0.000050 -0.923204 0.000032 -0.135318 0.000201 -0.405944 0.000312 -0.005000 -0.214976 0.000045 -0.922082 0.000025 -0.128035 0.000185 -0.404509 0.000309 -0.000000 -0.213684 0.000047 -0.921886 0.000028 -0.122784 0.000193 -0.401474 0.000318 0.005000 -0.212703 0.000044 -0.921831 0.000033 -0.118720 0.000183 -0.400302 0.000302 0.010000 -0.211549 0.000048 -0.921290 0.000033 -0.114341 0.000198 -0.396326 0.000372 0.015000 -0.210715 0.000050 -0.920990 0.000054 -0.111095 0.000198 -0.392545 0.000305 0.020000 -0.209378 0.000050 -0.921168 0.000053 -0.105344 0.000208 -0.388181 0.000345 0.025000 -0.208487 0.000044 -0.921232 0.000037 -0.101561 0.000180 -0.387278 0.000298 0.030000 -0.207206 0.000047 -0.920357 0.000040 -0.096926 0.000188 -0.383789 0.000325 0.035000 -0.206007 0.000043 -0.919119 0.000027 -0.092938 0.000179 -0.381897 0.000312 0.040000 -0.204964 0.000048 -0.918121 0.000054 -0.089406 0.000187 -0.380731 0.000318 0.045000 -0.203962 0.000041 -0.917586 0.000033 -0.085655 0.000177 -0.378721 0.000299 0.050000 -0.203152 0.000044 -0.918343 0.000038 -0.081627 0.000189 -0.376576 0.000327 0.055000 -0.201964 0.000049 -0.916874 0.000054 -0.077884 0.000186 -0.374436 0.000318 0.060000 -0.200328 0.000047 -0.915555 0.000051 -0.072131 0.000190 -0.369801 0.000281 0.065000 -0.199360 0.000045 -0.914487 0.000035 -0.068973 0.000189 -0.367742 0.000329 0.070000 -0.197867 0.000056 -0.914499 0.000039 -0.062705 0.000226 -0.366636 0.000318 0.075000 -0.196317 0.000045 -0.912585 0.000043 -0.057817 0.000177 -0.364115 0.000309 0.080000 -0.195532 0.000044 -0.913701 0.000042 -0.053593 0.000178 -0.361500 0.000297 0.085000 -0.195013 0.000044 -0.913602 0.000022 -0.051501 0.000182 -0.357716 0.000273 0.090000 -0.193320 0.000052 -0.911651 0.000071 -0.046044 0.000190 -0.355060 0.000269 0.095000 -0.191804 0.000043 -0.909311 0.000026 -0.041653 0.000173 -0.350735 0.000280 0.100000 -0.190557 0.000040 -0.908722 0.000030 -0.036923 0.000159 -0.349392 0.000296 0.105000 -0.189107 0.000040 -0.906737 0.000038 -0.032509 0.000165 -0.344661 0.000298 0.110000 -0.187935 0.000038 -0.905757 0.000027 -0.028420 0.000159 -0.342633 0.000296 0.115000 -0.187294 0.000045 -0.905536 0.000061 -0.025920 0.000175 -0.341437 0.000284 0.120000 -0.185889 0.000040 -0.904428 0.000060 -0.020961 0.000167 -0.337007 0.000290 0.125000 -0.184857 0.000042 -0.903427 0.000061 -0.017479 0.000165 -0.335140 0.000257 0.130000 -0.183748 0.000039 -0.902450 0.000039 -0.013648 0.000155 -0.333686 0.000287 0.135000 -0.182808 0.000038 -0.901736 0.000042 -0.010310 0.000156 -0.333405 0.000266 0.140000 -0.182072 0.000040 -0.902576 0.000027 -0.006524 0.000161 -0.332032 0.000290 0.145000 -0.180590 0.000041 -0.900408 0.000062 -0.002131 0.000152 -0.328358 0.000315 0.150000 -0.178851 0.000036 -0.898346 0.000034 0.003430 0.000150 -0.325386 0.000250 0.155000 -0.177434 0.000037 -0.896374 0.000030 0.007711 0.000149 -0.319977 0.000294 0.160000 -0.176494 0.000042 -0.893926 0.000078 0.009599 0.000153 -0.315737 0.000348 0.165000 -0.175007 0.000039 -0.891598 0.000061 0.013879 0.000145 -0.312931 0.000304 0.170000 -0.173698 0.000040 -0.890618 0.000037 0.018539 0.000163 -0.310928 0.000259 0.175000 -0.172767 0.000040 -0.889823 0.000040 0.021778 0.000164 -0.307475 0.000265 0.180000 -0.171706 0.000043 -0.889756 0.000058 0.026163 0.000156 -0.307668 0.000287 0.185000 -0.170771 0.000036 -0.888004 0.000064 0.028614 0.000153 -0.305148 0.000269 0.190000 -0.169072 0.000043 -0.884907 0.000075 0.033139 0.000151 -0.300070 0.000306 0.195000 -0.167787 0.000042 -0.882287 0.000065 0.036324 0.000158 -0.297557 0.000290 0.200000 -0.165707 0.000043 -0.877746 0.000112 0.041236 0.000150 -0.293754 0.000298 0.205000 -0.163823 0.000057 -0.872873 0.000119 0.045043 0.000167 -0.291527 0.000309 0.210000 -0.161710 0.000041 -0.867037 0.000090 0.049009 0.000143 -0.286392 0.000312 0.215000 -0.159742 0.000052 -0.862523 0.000159 0.053473 0.000137 -0.278422 0.000333 0.220000 -0.157616 0.000048 -0.856218 0.000121 0.057093 0.000152 -0.273986 0.000334 0.225000 -0.155874 0.000046 -0.851827 0.000126 0.060713 0.000148 -0.271236 0.000317 0.230000 -0.153494 0.000054 -0.844393 0.000151 0.064456 0.000147 -0.266328 0.000348 0.235000 -0.150655 0.000066 -0.835912 0.000196 0.069244 0.000171 -0.258237 0.000342 0.240000 -0.147408 0.000068 -0.826022 0.000251 0.074562 0.000141 -0.249499 0.000352 0.245000 -0.143037 0.000076 -0.810299 0.000371 0.079700 0.000140 -0.239567 0.000313 0.250000 -0.138953 0.000079 -0.792639 0.000338 0.082013 0.000153 -0.231494 0.000362 0.255000 -0.134249 0.000112 -0.776624 0.000403 0.088300 0.000178 -0.224657 0.000352 0.260000 -0.128675 0.000124 -0.753952 0.000510 0.092654 0.000162 -0.212947 0.000458 0.265000 -0.121729 0.000120 -0.726017 0.000534 0.098351 0.000150 -0.199928 0.000415 0.270000 -0.113374 0.000211 -0.689896 0.000921 0.103087 0.000185 -0.183906 0.000423 0.275000 -0.101870 0.000245 -0.642927 0.001029 0.111930 0.000215 -0.157075 0.000586 0.280000 -0.089610 0.000236 -0.592600 0.000983 0.121122 0.000212 -0.126695 0.000754 0.285000 -0.075304 0.000315 -0.532186 0.001419 0.130435 0.000189 -0.093801 0.000681 0.290000 -0.057752 0.000364 -0.456275 0.001592 0.140367 0.000237 -0.060511 0.000701 0.295000 -0.039134 0.000407 -0.375575 0.001844 0.150750 0.000216 -0.023206 0.000810 0.300000 -0.016288 0.000457 -0.277518 0.002035 0.164298 0.000244 0.024914 0.000936 0.305000 0.008335 0.000537 -0.169551 0.002349 0.176992 0.000320 0.075234 0.001083 0.310000 0.036350 0.000587 -0.049872 0.002594 0.194083 0.000320 0.133110 0.001123 0.315000 0.066128 0.000617 0.080939 0.002725 0.209232 0.000331 0.188922 0.001170 0.320000 0.096899 0.000622 0.215039 0.002729 0.225785 0.000347 0.244058 0.001148 0.325000 0.127328 0.000593 0.349327 0.002616 0.240747 0.000319 0.302989 0.001278 0.330000 0.157038 0.000585 0.478250 0.002570 0.257193 0.000327 0.362299 0.001300 0.335000 0.183641 0.000502 0.594832 0.002223 0.270964 0.000270 0.412079 0.001014 0.340000 0.206192 0.000412 0.693058 0.001841 0.283137 0.000226 0.456344 0.000755 0.345000 0.224933 0.000310 0.773478 0.001392 0.294269 0.000189 0.487923 0.000653 0.350000 0.239583 0.000240 0.835840 0.001064 0.303394 0.000187 0.517822 0.000537 0.355000 0.250037 0.000178 0.879489 0.000726 0.310616 0.000192 0.540248 0.000479 0.360000 0.257349 0.000107 0.909103 0.000446 0.316437 0.000156 0.553606 0.000399 0.365000 0.261931 0.000083 0.926125 0.000273 0.321372 0.000163 0.563298 0.000348 0.370000 0.264450 0.000045 0.934796 0.000115 0.324659 0.000149 0.569881 0.000298 0.375000 0.265888 0.000033 0.939161 0.000044 0.327024 0.000139 0.572139 0.000311 0.380000 0.266619 0.000035 0.939998 0.000021 0.329388 0.000148 0.573243 0.000299 0.385000 0.267664 0.000039 0.940476 0.000031 0.333363 0.000164 0.578756 0.000333 0.390000 0.268290 0.000036 0.939989 0.000059 0.336394 0.000145 0.582194 0.000371 0.395000 0.269292 0.000034 0.941299 0.000027 0.339496 0.000140 0.585710 0.000301 0.400000 0.270097 0.000037 0.941346 0.000022 0.342829 0.000155 0.585856 0.000334 0.405000 0.270933 0.000038 0.941124 0.000020 0.346516 0.000159 0.588208 0.000366 0.410000 0.271758 0.000034 0.940640 0.000020 0.350378 0.000140 0.593391 0.000339 0.415000 0.272348 0.000033 0.941411 0.000026 0.352207 0.000141 0.595314 0.000315 0.420000 0.273210 0.000040 0.941692 0.000043 0.355581 0.000175 0.599487 0.000352 0.425000 0.274250 0.000043 0.941907 0.000036 0.359758 0.000173 0.602547 0.000307 0.430000 0.275019 0.000039 0.942005 0.000016 0.362898 0.000164 0.607081 0.000330 0.435000 0.275517 0.000036 0.941373 0.000039 0.365512 0.000156 0.607705 0.000339 0.440000 0.276479 0.000041 0.942437 0.000025 0.368655 0.000169 0.610064 0.000317 0.445000 0.277204 0.000032 0.942917 0.000036 0.371287 0.000133 0.611919 0.000305 0.450000 0.278090 0.000041 0.943372 0.000023 0.374620 0.000169 0.615805 0.000354 0.455000 0.278779 0.000040 0.943303 0.000016 0.377561 0.000168 0.618871 0.000328 0.460000 0.279677 0.000038 0.943375 0.000025 0.381265 0.000158 0.622100 0.000352 0.465000 0.280205 0.000040 0.942976 0.000034 0.383813 0.000165 0.622802 0.000349 0.470000 0.280896 0.000038 0.942719 0.000022 0.386923 0.000159 0.625659 0.000349 0.475000 0.282077 0.000043 0.943966 0.000016 0.390823 0.000180 0.631256 0.000338 0.480000 0.282583 0.000040 0.943103 0.000017 0.393668 0.000168 0.632124 0.000327 0.485000 0.283413 0.000042 0.943444 0.000042 0.396862 0.000171 0.636494 0.000349 0.490000 0.284170 0.000038 0.943751 0.000021 0.399776 0.000156 0.637730 0.000342 0.495000 0.285218 0.000038 0.944082 0.000033 0.403889 0.000155 0.642691 0.000336 0.500000 0.286128 0.000037 0.944593 0.000028 0.407272 0.000154 0.645688 0.000331 laserjock-plotdrop-ead1520/Example Data 2000066400000000000000000000003421273305510500202250ustar00rootroot000000000000000.0 -0.000698 0.001441 0.1 -0.004501 0.000935 0.2 -0.005783 0.001294 0.3 -0.006241 0.000893 0.4 -0.011859 0.001584 0.5 -0.013156 0.001132 0.6 -0.018264 0.000838 0.7 -0.012393 0.000610 0.8 -0.0027 0.001464 0.9 0.00172 0.001375 laserjock-plotdrop-ead1520/Makefile000066400000000000000000000024671273305510500174050ustar00rootroot00000000000000 TARGET=plotdrop PREFIX=/usr/local DATADIR=$(PREFIX)/share/$(TARGET) BINDIR=$(PREFIX)/bin VERSION=0.5.4 OBJECTS=main.o gnuplot.o droplist.o LIBS = `pkg-config --libs gtk+-2.0 gio-2.0 glib-2.0 libglade-2.0` CFLAGS = -g -Wall -pedantic -std=c99 `pkg-config --cflags gtk+-2.0 gio-2.0 glib-2.0 libglade-2.0` -DDATADIR="\"$(DATADIR)\"" -DVERSION="\"$(VERSION)\"" all: $(TARGET) $(TARGET): $(OBJECTS) $(CC) -o $(TARGET) $(CFLAGS) $(OBJECTS) $(LIBS) clean: rm -f *.o $(TARGET) install: all install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(DATADIR) install -s $(TARGET) $(DESTDIR)$(BINDIR) install -m 0644 droplist.glade $(DESTDIR)$(DATADIR) install -d $(DESTDIR)$(PREFIX)/share/applications install -m 0644 plotdrop.desktop $(DESTDIR)$(PREFIX)/share/applications install -m 0644 plotdrop.png $(DESTDIR)$(DATADIR) install -d $(DESTDIR)$(PREFIX)/share/pixmaps install -m 0644 plotdrop.png $(DESTDIR)$(PREFIX)/share/pixmaps install -d $(DESTDIR)$(PREFIX)/share/appdata install -m 0644 plotdrop.appdata.xml $(DESTDIR)$(PREFIX)/share/appdata uninstall: rm -f $(DESTDIR)$(BINDIR)/$(TARGET) \ $(DESTDIR)$(DATADIR)/droplist.glade \ $(DESTDIR)$(PREFIX)/share/pixmaps/plotdrop.png \ $(DESTDIR)$(DATADIR)/plotdrop.png \ $(DESTDIR)$(PREFIX)/share/applications/plotdrop.desktop \ $(DESTDIR)$(PREFIX)/share/appdata/plotdrop.appdata.xml laserjock-plotdrop-ead1520/README000066400000000000000000000026741273305510500166250ustar00rootroot00000000000000 PlotDrop ======== A minimal GNOME frontend to GNUPlot. Originally created and developed by: John Spray http://icculus.org/~jcspray/ Now maintained and developed by: Jordan Mantha http://plotdrop.sourceforge.net PlotDrop is designed for quick and simple visualisation of 2D data series. It is not intended to encompass anywhere near the full capabilities of GNUPlot. PlotDrop is intended to be used in tandem with an external filesystem browser such as GNOME's nautilus or KDE's konqueror, whereby data files may be added by dragging them from the browser to the file list. Data files should be simple flat data of the kind preferred by GNUPlot, like 1.0 3.6 2.0 5.2 4.0 5.1 The series of a datafile to plot is set as an integer in the plot list. To plot more than one series simply add a file more than once and set a different series number on each entry. Error bar (+/- y) sizes may be specified in an extra column directly after every data column. Compilation =========== PlotDrop is tested with GCC 4.4. It requires the following libraries: * GTK+ 2.4 (earlier versions untested) * libglib (>= 2.16) * libglade * gnuplot (>= 4.0) Just type "make". Installation ============ PlotDrop may be run uninstalled from the directory in which it was compiled. Alternatively, it may be installed systemwide by issuing the command "make install" with root privileges as appropriate. laserjock-plotdrop-ead1520/TODO000066400000000000000000000015271273305510500164310ustar00rootroot00000000000000 * See how the splines etc modes work with errorbars * Allow multiple selection/removal * Allow removal by dragging to "Remove" button. * Allow per-series plot style selection with combo in treeview * Load data files with Gnome-VFS and pipe them to gnuplot, correspondingly maintain URIs instead of filenames. * Replace series text editable with something more user friendly, probe datafile to find allowed values. * Allow adding formula plots as well as data * Internationalize * It is not clear to the user which export formats are safe to use with 'enhanced' output. * Sort out character encodings: filenames (g_filename_to_utf8), onscreen (utf8), GNUPlot (?) * Support GNOME crash handler (libgnome?) * Do character encoding for gnuplot such that the euro symbol survives - note that gnuplot <4.0 does not have iso-8859-15 laserjock-plotdrop-ead1520/droplist.c000066400000000000000000000700171273305510500177450ustar00rootroot00000000000000 /* PlotDrop is free software, released under the GNU General Public License * See the COPYING file for licensing details. * * Copyright 2005 John Spray * Copyright 2009 Jordan Mantha */ // For exit () #include #include #include #include #include #include "droplist.h" #include "gnuplot.h" static struct { GtkListStore *store; GtkWidget *view; GtkWidget *plotmenu; GtkWidget *plotbutton; GtkWidget *clearmenu; GtkWidget *deletemenu; GtkWidget *clearbutton; GtkWidget *deletebutton; GtkWidget *exportbutton; GtkWidget *renamebutton; GtkWidget *stylecombo; GtkWidget *zeroaxischeck; GtkWidget *errorbarscheck; GtkWidget *gridcheck; GtkWidget *enhancedmodecheck; GtkWidget *logscaleycheck; GtkWidget *logscalexcheck; GtkWidget *titleentry; GtkWidget *xlabelentry; GtkWidget *ylabelentry; GtkAdjustment *xmin; GtkAdjustment *xmax; GtkAdjustment *ymin; GtkAdjustment *ymax; GtkWidget *xminspin; GtkWidget *xmaxspin; GtkWidget *yminspin; GtkWidget *ymaxspin; GtkWidget *xminset; GtkWidget *xmaxset; GtkWidget *yminset; GtkWidget *ymaxset; GtkWidget *extra; GtkWidget *dropherebox; GtkWidget *filebox; gchar *exportpath; } droplist; enum { COL_FILENAME = 0, COL_PATH, COL_TITLE, COL_SERIES, NUM_COLS }; enum { DRAG_TEXT, DRAG_URILIST }; static GtkTargetEntry drag_types[] = { //{"text/*", 0, DRAG_TEXT }, //{"STRING", 0, DRAG_TEXT }, {"text/uri-list", 0, DRAG_URILIST } }; static int const n_drag_types = sizeof (drag_types) / sizeof (drag_types[0]); void droplist_init_gui () { GladeXML *xml; xml = glade_xml_new ("droplist.glade", NULL, NULL); if (!xml) { xml = glade_xml_new (DATADIR "/droplist.glade", NULL, NULL); if (!xml) g_error ("Couldn't load glade file!\n"); } GtkWidget *window; window = glade_xml_get_widget (xml, "DropList"); g_signal_connect (G_OBJECT (window), "delete-event", G_CALLBACK (droplist_exit), NULL); GdkPixbuf *icon = gdk_pixbuf_new_from_file ("plotdrop.png", NULL); if (icon) { gtk_window_set_icon (GTK_WINDOW (window), icon); g_object_unref (G_OBJECT (icon)); } else { icon = gdk_pixbuf_new_from_file (DATADIR "/plotdrop.png", NULL); if (icon) { gtk_window_set_icon (GTK_WINDOW (window), icon); g_object_unref (G_OBJECT (icon)); } } GtkListStore *liststore = gtk_list_store_new (NUM_COLS, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); droplist.store = liststore; GtkCellRenderer *cellRO = gtk_cell_renderer_text_new (); //g_object_set (G_OBJECT (cellRO), "ellipsize", TRUE, NULL); GtkCellRenderer *cell_title = gtk_cell_renderer_text_new (); g_object_set (G_OBJECT (cell_title), "editable", TRUE, NULL); GtkCellRenderer *cell_series = gtk_cell_renderer_text_new (); g_object_set (G_OBJECT (cell_series), "editable", TRUE, NULL); //g_object_set (G_OBJECT (cellRW), "ellipsize", TRUE, NULL); g_signal_connect (G_OBJECT (cell_title), "edited", G_CALLBACK (droplist_title_edited), NULL); g_signal_connect (G_OBJECT (cell_series), "edited", G_CALLBACK (droplist_series_edited), NULL); GtkWidget *treeview; treeview = glade_xml_get_widget (xml, "FileView"); gtk_tree_view_set_model (GTK_TREE_VIEW (treeview), GTK_TREE_MODEL (liststore)); gtk_tree_view_insert_column_with_attributes ( GTK_TREE_VIEW (treeview), -1, "Filename", cellRO, "text", COL_FILENAME, NULL); gtk_tree_view_column_set_resizable ( gtk_tree_view_get_column (GTK_TREE_VIEW (treeview), 0), TRUE); //gtk_tree_view_column_set_sizing (gtk_tree_view_get_column (treeview, 0), GTK_TREE_VIEW_COLUMN_AUTOSIZE); gtk_tree_view_insert_column_with_attributes ( GTK_TREE_VIEW (treeview), -1, "Display title", cell_title, "markup", COL_TITLE, NULL); gtk_tree_view_column_set_resizable ( gtk_tree_view_get_column (GTK_TREE_VIEW (treeview), 1), TRUE); //gtk_tree_view_column_set_sizing (gtk_tree_view_get_column (treeview, 1), GTK_TREE_VIEW_COLUMN_AUTOSIZE); gtk_tree_view_insert_column_with_attributes ( GTK_TREE_VIEW (treeview), -1, "Series", cell_series, "text", COL_SERIES, NULL); gtk_tree_view_column_set_resizable ( gtk_tree_view_get_column (GTK_TREE_VIEW (treeview), 2), TRUE); droplist.view = treeview; gtk_drag_dest_set ( treeview, GTK_DEST_DEFAULT_MOTION | GTK_DEST_DEFAULT_HIGHLIGHT, drag_types, n_drag_types, GDK_ACTION_COPY | GDK_ACTION_LINK | GDK_ACTION_MOVE); g_signal_connect (G_OBJECT (treeview), "drag-data-received", G_CALLBACK (droplist_drag_data_received), NULL); g_signal_connect (G_OBJECT (treeview), "row-activated", G_CALLBACK (droplist_row_activated), NULL); GtkTreeSelection *sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)); g_signal_connect (G_OBJECT (sel), "changed", G_CALLBACK (droplist_selection_changed), NULL); droplist.dropherebox = glade_xml_get_widget (xml, "DropFilesHereBox"); droplist.filebox = glade_xml_get_widget (xml, "FileListBox"); GtkWidget *dropfileshere = glade_xml_get_widget (xml, "DropFilesHere"); gtk_drag_dest_set ( dropfileshere, GTK_DEST_DEFAULT_ALL, drag_types, n_drag_types, GDK_ACTION_COPY | GDK_ACTION_LINK | GDK_ACTION_MOVE); g_signal_connect (G_OBJECT (dropfileshere), "drag-data-received", G_CALLBACK (droplist_drag_data_received), NULL); droplist.stylecombo = glade_xml_get_widget (xml, "Style"); gtk_combo_box_set_active (GTK_COMBO_BOX (droplist.stylecombo), STYLE_POINTS); droplist.zeroaxischeck = glade_xml_get_widget (xml, "ShowZeroAxes"); droplist.errorbarscheck = glade_xml_get_widget (xml, "ShowErrorbars"); droplist.gridcheck = glade_xml_get_widget (xml, "ShowGrid"); droplist.enhancedmodecheck = glade_xml_get_widget (xml, "EnableSuperSubScripts"); droplist.logscaleycheck = glade_xml_get_widget (xml, "EnableLogscaleY"); droplist.logscalexcheck = glade_xml_get_widget (xml, "EnableLogscaleX"); droplist.xlabelentry = glade_xml_get_widget (xml, "XLabel"); droplist.ylabelentry = glade_xml_get_widget (xml, "YLabel"); droplist.titleentry = glade_xml_get_widget (xml, "Title"); droplist.xminset = glade_xml_get_widget (xml, "XMinCheck"); g_signal_connect (G_OBJECT (droplist.xminset), "toggled", G_CALLBACK (droplist_update_limit_sensitivities), NULL); droplist.xmaxset = glade_xml_get_widget (xml, "XMaxCheck"); g_signal_connect (G_OBJECT (droplist.xmaxset), "toggled", G_CALLBACK (droplist_update_limit_sensitivities), NULL); droplist.yminset = glade_xml_get_widget (xml, "YMinCheck"); g_signal_connect (G_OBJECT (droplist.yminset), "toggled", G_CALLBACK (droplist_update_limit_sensitivities), NULL); droplist.ymaxset = glade_xml_get_widget (xml, "YMaxCheck"); g_signal_connect (G_OBJECT (droplist.ymaxset), "toggled", G_CALLBACK (droplist_update_limit_sensitivities), NULL); droplist.xminspin = glade_xml_get_widget (xml, "XMin"); droplist.xmin = gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (droplist.xminspin)); droplist.xmaxspin = glade_xml_get_widget (xml, "XMax"); droplist.xmax = gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (droplist.xmaxspin)); droplist.yminspin = glade_xml_get_widget (xml, "YMin"); droplist.ymin = gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (droplist.yminspin)); droplist.ymaxspin = glade_xml_get_widget (xml, "YMax"); droplist.ymax = gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (droplist.ymaxspin)); droplist.extra = glade_xml_get_widget (xml, "Extra"); GtkWidget *extra_infobutton = glade_xml_get_widget (xml, "ExtraInfo"); g_signal_connect (G_OBJECT (extra_infobutton), "clicked", G_CALLBACK (droplist_extra_help), NULL); GtkWidget *addfile = glade_xml_get_widget (xml, "AddFile"); g_signal_connect (G_OBJECT (addfile), "activate", G_CALLBACK (droplist_add_file_UI), NULL); droplist.deletemenu = glade_xml_get_widget (xml, "Remove"); g_signal_connect (G_OBJECT (droplist.deletemenu), "activate", G_CALLBACK (droplist_delete), NULL); droplist.deletebutton = glade_xml_get_widget (xml, "RemoveButton"); g_signal_connect (G_OBJECT (droplist.deletebutton), "clicked", G_CALLBACK (droplist_delete), NULL); droplist.clearmenu = glade_xml_get_widget (xml, "Clear"); g_signal_connect (G_OBJECT (droplist.clearmenu), "activate", G_CALLBACK (droplist_clear), NULL); droplist.clearbutton = glade_xml_get_widget (xml, "ClearButton"); g_signal_connect (G_OBJECT (droplist.clearbutton), "clicked", G_CALLBACK (droplist_clear), NULL); droplist.plotmenu = glade_xml_get_widget (xml, "Plot"); g_signal_connect (G_OBJECT (droplist.plotmenu), "activate", G_CALLBACK (droplist_plot), NULL); droplist.plotbutton = glade_xml_get_widget (xml, "PlotButton"); g_signal_connect (G_OBJECT (droplist.plotbutton), "clicked", G_CALLBACK (droplist_plot), NULL); droplist.exportbutton = glade_xml_get_widget (xml, "ExportPS"); g_signal_connect (G_OBJECT (droplist.exportbutton), "activate", G_CALLBACK (droplist_export), NULL); droplist.renamebutton = glade_xml_get_widget (xml, "Rename"); g_signal_connect (G_OBJECT (droplist.renamebutton), "activate", G_CALLBACK (droplist_rename), NULL); #if GTK_MINOR_VERSION < 6 GtkWidget *helpmenu = glade_xml_get_widget (xml, "HelpMenu"); gtk_widget_hide (helpmenu); #endif GtkWidget *aboutbutton = glade_xml_get_widget (xml, "About"); g_signal_connect (G_OBJECT (aboutbutton), "activate", G_CALLBACK (droplist_about), NULL); GtkWidget *quitbutton = glade_xml_get_widget (xml, "Quit"); g_signal_connect (G_OBJECT (quitbutton), "activate", G_CALLBACK (droplist_exit), NULL); droplist_clear (); droplist_update_limit_sensitivities (); droplist_selection_changed (sel, NULL); } void droplist_add_file (char const *filename) { gtk_widget_hide_all (droplist.dropherebox); gtk_widget_show_all (droplist.filebox); GtkTreeIter it; gtk_list_store_append (droplist.store, &it); gchar *basename = g_path_get_basename (filename); /*gchar *tmp = basename; basename = g_filename_to_utf8 ();*/ gtk_list_store_set (droplist.store, &it, COL_FILENAME, basename, COL_PATH, filename, COL_TITLE, basename, COL_SERIES, "2", -1); g_free (basename); droplist_update_sensitivities (); } void droplist_clear () { gtk_list_store_clear (droplist.store); droplist_update_sensitivities (); /*GtkTreeIter it; gtk_list_store_append (droplist.store, &it); gtk_list_store_set (droplist.store, &it, COL_FILENAME, "", COL_PATH, "", COL_TITLE, "Drop files here", COL_SERIES, "", -1);*/ /*GtkTreeIter it; gtk_list_store_append (droplist.store, &it); gtk_list_store_set (droplist.store, &it, COL_FILENAME, "Drag files here", -1);*/ } void droplist_getdata (plotdata *data) { GtkTreeModel *model = GTK_TREE_MODEL (droplist.store); int n_rows = gtk_tree_model_iter_n_children (model, NULL); char **paths = (char**) g_malloc (n_rows * sizeof (char*)); char **titles = (char**) g_malloc (n_rows * sizeof (char*)); int *series = (int*) g_malloc (n_rows * sizeof (int)); GtkTreeIter it; if (!gtk_tree_model_get_iter_first (model, &it)) return; int i = 0; do { gtk_tree_model_get (model, &it, COL_PATH, &paths[i], -1); gtk_tree_model_get (model, &it, COL_TITLE, &titles[i], -1); gchar *seriestmp; gtk_tree_model_get (model, &it, COL_SERIES, &seriestmp, -1); //g_print ("'%s'\n", seriestmp); sscanf (seriestmp, "%d", &series[i]); g_free (seriestmp); i++; } while (gtk_tree_model_iter_next (model, &it)); // Files data->paths = paths; data->titles = titles; data->count = n_rows; data->series = series; // Apearance data->style = gtk_combo_box_get_active (GTK_COMBO_BOX (droplist.stylecombo)); data->zeroaxis = gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON (droplist.zeroaxischeck)); data->errorbars = gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON (droplist.errorbarscheck)); data->grid = gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON (droplist.gridcheck)); data->enhancedmode = gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON (droplist.enhancedmodecheck)); data->logscaley = gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON (droplist.logscaleycheck)); data->logscalex = gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON (droplist.logscalexcheck)); // Captions data->xlabel = gtk_entry_get_text (GTK_ENTRY (droplist.xlabelentry)); data->ylabel = gtk_entry_get_text (GTK_ENTRY (droplist.ylabelentry)); data->title = gtk_entry_get_text (GTK_ENTRY (droplist.titleentry)); // Limits data->xmin = gtk_adjustment_get_value (droplist.xmin); data->xmax = gtk_adjustment_get_value (droplist.xmax); data->ymin = gtk_adjustment_get_value (droplist.ymin); data->ymax = gtk_adjustment_get_value (droplist.ymax); data->xminset = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (droplist.xminset)); data->xmaxset = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (droplist.xmaxset)); data->yminset = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (droplist.yminset)); data->ymaxset = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (droplist.ymaxset)); // Arbitrary commands GtkTextIter start; GtkTextIter end; GtkTextBuffer *buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW (droplist.extra)); gtk_text_buffer_get_start_iter (buf, &start); gtk_text_buffer_get_end_iter (buf, &end); data->extra = gtk_text_buffer_get_text (buf, &start, &end, TRUE); // File me! //data->seriescount = 2; } void droplist_freedata (plotdata *data) { for (int i = 0; i < data->count; ++i) { g_free (data->paths[i]); g_free (data->titles[i]); } g_free (data->paths); g_free (data->titles); g_free (data->extra); g_free (data->series); } void droplist_handle_plot ( plotdata const *data, gboolean export, gchar *outfile, exportformat format) { char *retval = gnuplot_plot (data, export, outfile, format); if (retval) { gchar *errorstring = g_convert (retval, -1, "UTF-8", "ISO-8859-1", NULL, NULL, NULL); GtkWidget *dialog = gtk_message_dialog_new_with_markup ( NULL, 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "Plotting error!\n\n" "The following error(s) were experienced when running gnuplot:\n"); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); GtkWidget *vbox = GTK_DIALOG(dialog)->vbox; GtkTextBuffer *buffer = gtk_text_buffer_new (NULL); gtk_text_buffer_set_text (buffer, errorstring, -1); g_free (errorstring); // The output probably won't fit in the window, and we don't want // to wrap it. GtkWidget *scrolled = gtk_scrolled_window_new (NULL, NULL); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled), GTK_SHADOW_IN); gtk_box_pack_start_defaults (GTK_BOX (vbox), scrolled); GtkWidget *textview = gtk_text_view_new_with_buffer (buffer); gtk_text_view_set_editable (GTK_TEXT_VIEW (textview), FALSE); // Use a monospace font, because GNUPlot formats output accordingly PangoFontDescription *font_desc; font_desc = pango_font_description_from_string("Monospace"); gtk_widget_modify_font(textview, font_desc); pango_font_description_free(font_desc); gtk_container_add (GTK_CONTAINER (scrolled), textview); gtk_widget_show_all (scrolled); gtk_widget_set_size_request (GTK_WIDGET (dialog), 500, 300); gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (GTK_WIDGET (dialog)); } } void droplist_plot () { plotdata data; droplist_getdata (&data); droplist_handle_plot (&data, NULL, NULL, 0); droplist_freedata (&data); } void droplist_export () { // Save the user's format preference in between calls static int formatrow = 0; GtkWidget *chooser = gtk_file_chooser_dialog_new ( "Plot to File", NULL, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_ACCEPT); #if GTK_MINOR_VERSION >= 8 gtk_file_chooser_set_do_overwrite_confirmation ( GTK_FILE_CHOOSER (chooser), TRUE); #endif if (droplist.exportpath) { g_message ("Using exportpath '%s'\n", droplist.exportpath); gtk_file_chooser_set_current_folder ( GTK_FILE_CHOOSER (chooser), droplist.exportpath); } else { // Go to the folder of the first file in the list GtkTreeIter it; GtkTreeModel *model = GTK_TREE_MODEL (droplist.store); if (!gtk_tree_model_get_iter_first (model, &it)) return; gchar *path; gchar *pathdir; gtk_tree_model_get (model, &it, COL_PATH, &path, -1); pathdir = g_path_get_dirname (path); gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (chooser), pathdir); g_free (pathdir); } static char* format_names[] = { "Postscript", "Color Postscript", "Encapsulated Postscript (EPS)", "Color EPS", "Portable Network Graphics (PNG)", "Scalable Vector Graphcs (SVG)", "LaTeX-embedded Postscript (pslatex)", "Color LaTeX-embedded Postscript (pslatex)", "XFig"}; static char* format_extensions[] = { ".ps", ".ps", ".eps", ".eps", ".png", ".svg", ".tex", ".tex", ".fig"}; GtkWidget *formatcombo = gtk_combo_box_new_text (); gtk_combo_box_append_text (GTK_COMBO_BOX (formatcombo), "Automatic from file name"); for (int i = 0; i < FORMAT_COUNT; ++i) gtk_combo_box_append_text (GTK_COMBO_BOX (formatcombo), format_names[i]); gtk_combo_box_set_active (GTK_COMBO_BOX (formatcombo), formatrow); GtkWidget *formatbox = gtk_hbox_new (FALSE, 12); GtkWidget *formatlabel = gtk_label_new ("Format:"); gtk_box_pack_start (GTK_BOX (formatbox), formatlabel, FALSE, FALSE, 0); gtk_box_pack_start_defaults (GTK_BOX (formatbox), formatcombo); gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (chooser), formatbox); gtk_widget_show_all (formatbox); if (gtk_dialog_run (GTK_DIALOG (chooser)) == GTK_RESPONSE_ACCEPT) { gchar *filename = g_strdup ( gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (chooser))); formatrow = gtk_combo_box_get_active (GTK_COMBO_BOX (formatcombo)); exportformat format; gboolean guessformat = FALSE; if (formatrow != 0) { format = formatrow - 1; } else { format = FORMAT_PS; guessformat = TRUE; } gchar *basename = g_path_get_basename (filename); gchar *extension = strrchr (basename, '.'); if (extension == NULL) { // Append appropriate extension because the filename has no extension char *strtmp; strtmp = (char*)filename; filename = g_strconcat (filename, format_extensions[format], NULL); g_free (strtmp); } else if (guessformat) { // Guess at what format to used based on the extension the user gave the file for (int i = 0; i < FORMAT_COUNT; ++i) { if (!strcmp (format_extensions[i], extension)) { format = i; break; } } // Falling through to the default format set above. } g_free (basename); plotdata data; droplist_getdata (&data); droplist_handle_plot (&data, TRUE, filename, format); droplist_freedata (&data); if (droplist.exportpath) g_free (droplist.exportpath); droplist.exportpath = g_path_get_dirname (filename); g_free (filename); } gtk_widget_destroy (chooser); } gint droplist_exit (GtkWidget *widget, gpointer data) { if (droplist_really_quit ()) { gtk_main_quit (); } return TRUE; } void droplist_drag_data_received (GtkWidget *widget, GdkDragContext *drag_context, gint x, gint y, GtkSelectionData *data, guint info, guint time, gpointer user_data) { gchar **uriList; uriList = g_uri_list_extract_uris ((gchar *) data->data); for (int i = 0; uriList[i] != NULL; i++) { gchar *filename = g_filename_from_uri (uriList[i], NULL, NULL); droplist_add_file (filename); g_free(filename); } g_strfreev (uriList); } void droplist_selection_changed (GtkTreeSelection *sel, gpointer data) { // Update sensitivity of delete & rename buttons gboolean enable = gtk_tree_selection_get_selected (sel, NULL, NULL); gtk_widget_set_sensitive (droplist.deletemenu, enable); gtk_widget_set_sensitive (droplist.deletebutton, enable); gtk_widget_set_sensitive (droplist.renamebutton, enable); } void droplist_update_sensitivities () { gboolean enable = gtk_tree_model_iter_n_children (GTK_TREE_MODEL (droplist.store), NULL); gtk_widget_set_sensitive (droplist.plotmenu, enable); gtk_widget_set_sensitive (droplist.plotbutton, enable); gtk_widget_set_sensitive (droplist.exportbutton, enable); gtk_widget_set_sensitive (droplist.clearbutton, enable); gtk_widget_set_sensitive (droplist.clearmenu, enable); } void droplist_delete () { GtkTreeModel *model; GtkTreeIter it; if (!gtk_tree_selection_get_selected (gtk_tree_view_get_selection (GTK_TREE_VIEW (droplist.view)), &model, &it)) return; gtk_list_store_remove (droplist.store, &it); // Broken - we need to use gtk_tree_row_reference stuff to modify /*GList *selected = gtk_tree_selection_get_selected_rows ( gtk_tree_view_get_selection (GTK_TREE_VIEW (droplist.view))); while (selected) { gtk_tree_model_get_iter (gtk_tree_view_get_model (GTK_TREE_VIEW (droplist.view)), &it, selected->data); //gtk_list_store_remove (droplist.store, &it); selected = selected->next; } g_list_foreach (list, gtk_tree_path_free, NULL); g_list_free (list);*/ droplist_update_sensitivities (); } void droplist_rename () { GtkTreeModel *model; GtkTreeIter it; if (!gtk_tree_selection_get_selected (gtk_tree_view_get_selection (GTK_TREE_VIEW (droplist.view)), &model, &it)) return; GtkTreePath *path = gtk_tree_model_get_path (model, &it); gtk_tree_view_set_cursor (GTK_TREE_VIEW (droplist.view), path, gtk_tree_view_get_column (GTK_TREE_VIEW (droplist.view), 1), TRUE); gtk_tree_path_free (path); } void droplist_title_edited (GtkCellRendererText *cell, gchar *path_string, gchar *new_text, gpointer user_data) { GtkTreeIter it; if (gtk_tree_model_get_iter_from_string ( GTK_TREE_MODEL (droplist.store), &it, path_string)) gtk_list_store_set (droplist.store, &it, COL_TITLE, new_text, -1); } void droplist_series_edited (GtkCellRendererText *cell, gchar *path_string, gchar *new_text, gpointer user_data) { int scratch; // Make sure it's an integer if (sscanf (new_text, "%d", &scratch) != 1) return; // Field 1 is always the x axis if (scratch < 2) return; // Enter it into the treemodel GtkTreeIter it; if (gtk_tree_model_get_iter_from_string ( GTK_TREE_MODEL (droplist.store), &it, path_string)) gtk_list_store_set (droplist.store, &it, COL_SERIES, new_text, -1); } void droplist_row_activated (GtkTreeView *treeview, GtkTreePath *arg1, GtkTreeViewColumn *arg2, gpointer user_data) { GtkTreeModel *model = GTK_TREE_MODEL (droplist.store); GtkTreeIter it; if (!gtk_tree_selection_get_selected ( gtk_tree_view_get_selection (treeview), &model, &it)) return; gchar *path; gtk_tree_model_get (model, &it, COL_PATH, &path, -1); path = g_strdup_printf ("file://%s", path); /* gnome_vfs_url_show(path); should get replaced with something like: gtk_show_uri (NULL, path,gtk_get_current_event_time (), &error); */ g_free (path); } void droplist_update_limit_sensitivities () { gtk_widget_set_sensitive (droplist.xminspin, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (droplist.xminset))); gtk_widget_set_sensitive (droplist.xmaxspin, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (droplist.xmaxset))); gtk_widget_set_sensitive (droplist.yminspin, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (droplist.yminset))); gtk_widget_set_sensitive (droplist.ymaxspin, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (droplist.ymaxset))); } void droplist_extra_help (GtkWidget *widg, gpointer data) { GtkWidget *dialog = gtk_message_dialog_new_with_markup ( NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, "Using extra commands\n\n" "The commands entered here are executed by gnuplot after plotdrop " "sets up the environment according to the requested settings, but " "before the plot command itself. For example, if you select the " "\"Lines\" appearance and put \"set style data points\" here, then " "the resulting plot will be with points rather than lines." ); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); } void droplist_no_gnuplot () { GtkWidget *dialog = gtk_message_dialog_new_with_markup ( NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_NONE, "Gnuplot not found!\n\n" "PlotDrop cannot find gnuplot. Please make sure that you have gnuplot " "installed, and that it is in a directory referred to in the PATH " "environment variable. PlotDrop will not work. Do you want to quit " "now, or continue anyway?" ); gtk_dialog_add_buttons (GTK_DIALOG (dialog), "Continue Anyway", GTK_RESPONSE_OK, GTK_STOCK_QUIT, GTK_RESPONSE_CANCEL, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL); if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_CANCEL) { exit (-1); } gtk_widget_destroy (dialog); } gboolean droplist_really_quit () { if (!gtk_tree_model_iter_n_children (GTK_TREE_MODEL (droplist.store), NULL)) return TRUE; GtkWidget *dialog = gtk_message_dialog_new_with_markup ( NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "Really quit?\n\n" "Are you certain you wish to quit? If you quit now, you will lose " "the contents of the file list and all parameters." ); gtk_dialog_add_buttons (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_QUIT, GTK_RESPONSE_OK, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL); gboolean retval; if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) retval = TRUE; else retval = FALSE; gtk_widget_destroy (dialog); return retval; } void droplist_about () { #if GTK_MINOR_VERSION >= 6 GtkWidget *aboutdialog = gtk_about_dialog_new (); gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (aboutdialog), "PlotDrop"); gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG (aboutdialog), "A GNOME frontend to gnuplot, for simple graph plotting"); gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (aboutdialog), "Copyright © 2005 John Spray\nCopyright © 2008 Jordan Mantha"); gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (aboutdialog), "http://plotdrop.sourceforge.net/"); gtk_about_dialog_set_website_label (GTK_ABOUT_DIALOG (aboutdialog), "http://plotdrop.sourceforge.net/"); gchar *extrastring = g_strdup_printf ( "%s\nUsing gnuplot version %s", gtk_about_dialog_get_comments (GTK_ABOUT_DIALOG (aboutdialog)), gnuplot_get_version ()); gtk_about_dialog_set_comments ( GTK_ABOUT_DIALOG (aboutdialog), extrastring); gtk_about_dialog_set_version ( GTK_ABOUT_DIALOG (aboutdialog), VERSION); gtk_dialog_run (GTK_DIALOG (aboutdialog)); gtk_widget_destroy (aboutdialog); #endif } void droplist_add_file_UI () { GtkWidget *chooser = gtk_file_chooser_dialog_new ( "Add data file", NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_ADD, GTK_RESPONSE_ACCEPT, NULL); gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_ACCEPT); gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (chooser), TRUE); // Go to the folder of the first file in the list GtkTreeIter it; GtkTreeModel *model = GTK_TREE_MODEL (droplist.store); if (gtk_tree_model_get_iter_first (model, &it)) { gchar *path; gchar *pathdir; gtk_tree_model_get (model, &it, COL_PATH, &path, -1); pathdir = g_path_get_dirname (path); gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (chooser), pathdir); g_free (pathdir); } if (gtk_dialog_run (GTK_DIALOG (chooser)) == GTK_RESPONSE_ACCEPT) { GSList *files = gtk_file_chooser_get_filenames (GTK_FILE_CHOOSER (chooser)); GSList *it = files; while (it != NULL) { gchar *filename = (gchar*)it->data; droplist_add_file (filename); g_free (filename); it = it->next; } g_slist_free (files); } gtk_widget_destroy (chooser); } laserjock-plotdrop-ead1520/droplist.glade000066400000000000000000001431301273305510500205740ustar00rootroot00000000000000 True PlotDrop GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False 600 300 True False True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False True False 0 True GTK_PACK_DIRECTION_LTR GTK_PACK_DIRECTION_LTR True _Plot True True _Plot to Screen True True gtk-apply 1 0.5 0.5 0 0 True P_lot to File... True True gtk-save-as 1 0.5 0.5 0 0 True True gtk-quit True True _Series True True _Add File... True True gtk-add 1 0.5 0.5 0 0 Add E_xpression... True True gtk-add 1 0.5 0.5 0 0 True gtk-remove True True Remove _All True True gtk-clear 1 0.5 0.5 0 0 True True _Edit Title True True gtk-edit 1 0.5 0.5 0 0 True _Help True True gtk-about True 0 False False 12 True False 12 True 0 0.5 GTK_SHADOW_IN True <b><i>Drop data files here</i></b> Data files should be text files containing rows of space-delimited numeric values False True GTK_JUSTIFY_CENTER False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True False 6 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN GTK_CORNER_TOP_LEFT True Drag data files here to include them in the plot. Click on the title or series of a selected file to change it. Double click on a filename to edit the data file. True True True True True False False True 0 True True True False 6 True Remove the selected series True GTK_RELIEF_NORMAL True True gtk-remove 4 0.5 0.5 0 0 0 False False GTK_PACK_END True Remove all items from the file list True GTK_RELIEF_NORMAL True True gtk-clear 4 0.5 0.5 0 0 0 False False GTK_PACK_END 0 False True 0 True True True False 6 True True True True GTK_POS_TOP False False 12 True 3 2 False 6 9 True _X Label: True False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 XLabel PANGO_ELLIPSIZE_NONE -1 False 0 0 1 1 2 fill True _Y Label: True False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 YLabel PANGO_ELLIPSIZE_NONE -1 False 0 0 1 2 3 fill True Caption for the X axis True True True 0 True * True 1 2 1 2 True Caption for the Y axis True True True 0 True * True 1 2 2 3 True _Title: True False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 Title PANGO_ELLIPSIZE_NONE -1 False 0 0 1 0 1 fill True The plot's title True True True 0 True * True 1 2 0 1 False True True Captions True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab 12 True 4 2 False 6 12 True True _X Min: True GTK_RELIEF_NORMAL True False False True 0 1 0 1 fill True True X _Max: True GTK_RELIEF_NORMAL True False False True 0 1 1 2 fill True True _Y Min: True GTK_RELIEF_NORMAL True False False True 0 1 2 3 fill True True Y Max: True GTK_RELIEF_NORMAL True False False True 0 1 3 4 fill True True 1 4 True GTK_UPDATE_ALWAYS False False 0 -inf inf 0.10000000149 10 10 1 2 0 1 True True 1 4 True GTK_UPDATE_ALWAYS False False 0 -inf inf 0.10000000149 10 10 1 2 1 2 True True 1 4 True GTK_UPDATE_ALWAYS False False 0 -inf inf 0.10000000149 10 10 1 2 2 3 True True 1 4 True GTK_UPDATE_ALWAYS False False 0 -inf inf 0.10000000149 10 10 1 2 3 4 False True True Limits True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab 12 True 5 2 False 6 12 True Line _style: True False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 Style PANGO_ELLIPSIZE_NONE -1 False 0 0 1 0 1 fill True Points Lines Points & Lines Cubic Splines Approximated Cubic Splines Bezier Unique & Bezier Unique Frequency False True 1 2 0 1 fill True Draw lines indicating x=0 and y=0 True S_how zero axes True GTK_RELIEF_NORMAL True False False True 0 2 2 3 fill True Draw a grid behind the plotted series True Show _grid True GTK_RELIEF_NORMAL True False False True 0 2 3 4 fill True In series titles, axis labels and plot titles, underscores (_) and carets (^) may be used to include subscripted and superscripted text respectively True Enable s_uper/subscripts True GTK_RELIEF_NORMAL True False False True 0 2 4 5 fill True Use logarithmic scaling for the y-axis True Enable logarithmic y-axis True GTK_RELIEF_NORMAL True False False True 0 2 5 6 fill True Use logarithmic scaling for the x-axis True Enable logarithmic x-axis True GTK_RELIEF_NORMAL True False False True 0 2 6 7 fill True Error bar data is looked for in the column following the series plotted, and to give the error in the plotted y value for each point True Sh_ow error bars True GTK_RELIEF_NORMAL True False False True 0 2 1 2 fill False True True Appearance True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab 12 True False 6 True False 0 True <i>Enter arbitrary commands:</i> False True GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False True True GTK_RELIEF_NORMAL True True gtk-help 4 0.5 0.5 0 0 0 False False GTK_PACK_END 0 False False True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN GTK_CORNER_TOP_LEFT True True True False True GTK_JUSTIFY_LEFT GTK_WRAP_WORD True 0 0 0 2 2 0 0 True True False True True Extra True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab 0 True True True False Plot to the screen True True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-apply 4 0.5 0.5 0 0 0 False False True _Plot True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 0 False False 0 False True 0 True True laserjock-plotdrop-ead1520/droplist.h000066400000000000000000000037031273305510500177500ustar00rootroot00000000000000 /* PlotDrop is free software, released under the GNU General Public License * See the COPYING file for licensing details. * * Copyright 2005 John Spray */ #include #include "plotdata.h" void droplist_init_gui (); void droplist_add_file (char const *filename); void droplist_plot (); void droplist_handle_plot (); void droplist_export (); gint droplist_exit (GtkWidget *widget, gpointer data); void droplist_update_limit_sensitivities (); void droplist_drag_data_received (GtkWidget *widget, GdkDragContext *drag_context, gint x, gint y, GtkSelectionData *data, guint info, guint time, gpointer user_data); void droplist_title_edited (GtkCellRendererText *cell, gchar *path_string, gchar *new_text, gpointer user_data); void droplist_row_activated (GtkTreeView *treeview, GtkTreePath *arg1, GtkTreeViewColumn *arg2, gpointer user_data); void droplist_series_edited (GtkCellRendererText *cell, gchar *path_string, gchar *new_text, gpointer user_data); void droplist_clear (); void droplist_selection_changed (GtkTreeSelection *sel, gpointer data); void droplist_delete (); void droplist_rename (); void droplist_extra_help (GtkWidget *widg, gpointer data); void droplist_no_gnuplot (); gboolean droplist_really_quit (); void droplist_update_sensitivities (); void droplist_about (); void droplist_add_file_UI (); void droplist_getdata (plotdata *data); void droplist_freedata (plotdata *data); laserjock-plotdrop-ead1520/gnuplot.c000066400000000000000000000173751273305510500176050ustar00rootroot00000000000000 /* PlotDrop is free software, released under the GNU General Public License * See the COPYING file for licensing details. * * Copyright 2005 John Spray */ #include #include #include #include #include #include #include "gnuplot.h" // Nasty, we have two arrays because not all formats support 'enhanced' // Recall that 'enhanced' means doing things like superscripts and subscripts static char* exportformats[] = {"postscript", "postscript color", "postscript eps", "postscript eps color", "png", "svg", "pslatex", "pslatex color", "fig"}; static char* exportformats_enhanced[] = {"postscript enhanced", "postscript enhanced color", "postscript enhanced eps", "postscript enhanced eps color", "png", "svg enhanced", "pslatex", "pslatex color", "fig"}; // This should be in stdio.h, I don't know why it's not. extern FILE *popen (__const char *__command, __const char *__modes); extern int pclose (FILE *__stream); static gchar *gnuplot_prepstring (gchar const *in) { gchar *encoded = g_convert_with_fallback ( in, -1, "ISO-8859-1", "UTF-8", "[]", NULL, NULL, NULL); gchar *const escaped = g_strescape (encoded, ""); g_free (encoded); return escaped; } char *gnuplot_plot ( plotdata const *data, unsigned int export, char *outfile, exportformat format) { if (data->paths[0] == NULL || data->count < 1) return "Plotdrop: No data series found"; char scriptname[256]; snprintf (scriptname, 255, "/tmp/plotdrop_%d.gnu", getpid ()); FILE *plotscript = fopen (scriptname, "wx"); if (!plotscript) { return "Plotdrop: Could not open temporary script file"; } // Set encoding before selecting terminal fprintf (plotscript, "set encoding iso_8859_1\n"); // Set which terminal to use for output if (export) { if (data->enhancedmode && !strcmp (exportformats_enhanced[format], exportformats[format])) fprintf (stderr, "gnuplot_export: Warning - enhanced mode was requested, " "but the selected format does not support it\n"); //FIXME: tell the user fprintf (plotscript, "set term %s\nset output '%s'\n", data->enhancedmode ? exportformats_enhanced[format] : exportformats[format], outfile); } else { fprintf (plotscript, "set term x11 %s\n", data->enhancedmode ? "enhanced" : ""); } gnuplot_compose_script (plotscript, data); fprintf (stderr, "\n\nRunning GNUPlot with the following commands:\n"); gnuplot_compose_script (stderr, data); fprintf (plotscript, "quit\n"); fflush (plotscript); fclose (plotscript); // Compose the gnuplot command line char command[512]; if (export) snprintf (command, 511, "gnuplot %s 2>&1", scriptname); else snprintf (command, 511, "gnuplot -persist %s 2>&1", scriptname); // Run gnuplot and get the return value FILE *instance = popen (command, "r"); int error = pclose (instance); // In case of error: // We actually run gnuplot again in this case of an error, because // we only want to do the (potentially blocking) fread when there's // an error, and we only know if there's an error once we've closed // the original pipe. static char *log = NULL; if (error) { fprintf (stderr, "\nGNUPlot returned %d\n", error); if (!log) log = malloc (sizeof (char) * 2048); instance = popen (command, "r"); // Get stdout and stderr all together int size = fread (log, 1, 2047, instance); pclose (instance); log[size] = '\0'; if (size > 0) fprintf (stderr, "\n\nGNUPlot log:%d\n\"\"\"\n%s\n\n\"\"\"\n", size, log); } // Delete the plot script unlink (scriptname); if (error) return log; else return NULL; } void gnuplot_compose_script (FILE *plotscript, plotdata const *data) { // GNUPlot wants values formatted with periods setlocale (LC_ALL, "C"); gchar *escaped = NULL; if (data->xlabel) { escaped = gnuplot_prepstring (data->xlabel); fprintf (plotscript, "set xlabel \"%s\"\n", escaped); g_free (escaped); } if (data->ylabel) { escaped = gnuplot_prepstring (data->ylabel); fprintf (plotscript, "set ylabel \"%s\"\n", escaped); g_free (escaped); } if (data->title) { escaped = gnuplot_prepstring (data->title); fprintf (plotscript, "set title \"%s\"\n", escaped); g_free (escaped); } // Logscales if (data->logscaley) fprintf (plotscript, "set logscale y\n"); if (data->logscalex) fprintf (plotscript, "set logscale x\n"); if (data->zeroaxis) fprintf (plotscript, "set zeroaxis\n"); if (data->grid) fprintf (plotscript, "set grid\n"); if (data->extra) fprintf (plotscript, "%s\n", data->extra); char *plotcommand = "plot "; fprintf (plotscript, "%s", plotcommand); // X Limits fprintf (plotscript, "["); if (data->xminset) fprintf (plotscript, "%f", data->xmin); fprintf (plotscript, ":"); if (data->xmaxset) fprintf (plotscript, "%f", data->xmax); fprintf (plotscript, "]"); // Y Limits fprintf (plotscript, "["); if (data->yminset) fprintf (plotscript, "%f", data->ymin); fprintf (plotscript, ":"); if (data->ymaxset) fprintf (plotscript, "%f", data->ymax); fprintf (plotscript, "]"); // For cycling through point types "with points pt %d" int ptcounter = 0; for (int i = 0; i < data->count; ++i ) { char *path = data->paths[i]; char *title = data->titles[i]; int series = data->series[i]; // Series separator if (i > 0) fprintf (plotscript, ","); // Filename if (path) fprintf (plotscript, " '%s' ", path); // 'Using' clause if (data->errorbars) { fprintf (plotscript, " using 1:%d:%d ", series, series + 1); } else { fprintf (plotscript, " using 1:%d ", series); } if (data->errorbars) { if (data->style == STYLE_POINTS) fprintf (plotscript, "with errorbars "); else if (data->style == STYLE_LINES || data->style == STYLE_LINESPOINTS) fprintf (plotscript, "with errorlines "); } else { switch (data->style) { case STYLE_POINTS: fprintf (plotscript, "with points "); break; case STYLE_LINES: fprintf (plotscript, "with lines "); break; case STYLE_LINESPOINTS: fprintf (plotscript, "with linespoints "); break; case STYLE_UNIQUE: fprintf (plotscript, "smooth unique "); break; case STYLE_FREQUENCY: fprintf (plotscript, "smooth frequency "); break; case STYLE_CSPLINES: fprintf (plotscript, "smooth csplines "); break; case STYLE_ACSPLINES: fprintf (plotscript, "smooth acsplines "); break; case STYLE_BEZIER: fprintf (plotscript, "smooth bezier "); break; case STYLE_SBEZIER: fprintf (plotscript, "smooth sbezier "); break; } } if (data->style == STYLE_POINTS || data->style == STYLE_LINESPOINTS || data->errorbars) { // First use hollow shapes (4, 6, 8, 10, 12) // Then use filled shapes (5, 7, 9, 11, 13) // Then give up on being picky if (ptcounter < 5) fprintf (plotscript, "pt %d ", 4 + (ptcounter % 5) * 2); else if (ptcounter < 10) fprintf (plotscript, "pt %d ", 4 + (ptcounter % 5) * 2 + 1); else fprintf (plotscript, "pt %d ", ptcounter % 14); ++ptcounter; } // Series label if (title) { title = gnuplot_prepstring (title); fprintf (plotscript, "title \"%s\"", title); g_free (title); } } fprintf (plotscript, "\n"); setlocale (LC_ALL, ""); } char* gnuplot_get_version () { FILE *prog = popen ("gnuplot --version", "r"); if (!prog) { fprintf (stderr, "gnuplot_get_version: error opening pipe!\n"); return NULL; } char outp[255]; int size = fread (outp, 1, 128, prog); outp[size] = '\0'; int status = pclose (prog); if (status) { fprintf (stderr, "gnuplot_get_version: gnuplot not found!\n"); return NULL; } static char *version = NULL; if (!version) version = malloc (128); sscanf (outp, "gnuplot %s\n", version); if (strlen (version) == 0) return NULL; else return version; } laserjock-plotdrop-ead1520/gnuplot.h000066400000000000000000000011741273305510500176000ustar00rootroot00000000000000 /* PlotDrop is free software, released under the GNU General Public License * See the COPYING file for licensing details. * * Copyright 2005 John Spray */ #include #include "plotdata.h" // Perform the plotting operation, either to the screen (data, 0, NULL, 0) // or to a file (data, 1, ...) char *gnuplot_plot ( plotdata const *data, unsigned int export, char *outfile, exportformat format); // Write a GNUPlot script to plot plotdata, to plotscript void gnuplot_compose_script (FILE *plotscript, plotdata const *data); // Return a string like "4.0" for "gnuplot 4.0 patchlevel 1" char* gnuplot_get_version (); laserjock-plotdrop-ead1520/main.c000066400000000000000000000017531273305510500170320ustar00rootroot00000000000000 /* PlotDrop is free software, released under the GNU General Public License * See the COPYING file for licensing details. * * Copyright 2005 John Spray * Copyright 2009 Jordan Mantha */ #include #include #include "droplist.h" #include "gnuplot.h" int main(int argc, char **argv) { gtk_set_locale (); gtk_init (&argc,&argv); gchar *ver = gnuplot_get_version (); if (ver) fprintf (stdout, "Found gnuplot version '%s'\n", ver); else droplist_no_gnuplot (); droplist_init_gui (); if (argc > 1) { gchar *pwd = getcwd (NULL, 0); // g_get_current_dir? for (int i = 1; i < argc; ++i) { if (argv[i][0] == '/'/*g_path_is_absolute (argv[i])*/) { g_message ("filename absolute '%s'", argv[i]); droplist_add_file (argv[i]); } else { gchar *tmp = g_build_filename (pwd, argv[i], NULL); g_message ("built filename '%s'", tmp); droplist_add_file (tmp); g_free (tmp); } } g_free (pwd); } gtk_main (); } laserjock-plotdrop-ead1520/plotdata.h000066400000000000000000000020441273305510500177150ustar00rootroot00000000000000 /* PlotDrop is free software, released under the GNU General Public License * See the COPYING file for licensing details. * * Copyright 2005 John Spray */ #ifndef PLOTDATA_H #define PLOTDATA_H typedef struct plotdata { char **paths; char **titles; int *series; int count; char const *xlabel; char const *ylabel; char const *title; enum {STYLE_POINTS = 0, STYLE_LINES, STYLE_LINESPOINTS, STYLE_CSPLINES, STYLE_ACSPLINES, STYLE_BEZIER, STYLE_SBEZIER, STYLE_UNIQUE, STYLE_FREQUENCY} style; unsigned int zeroaxis; unsigned int errorbars; unsigned int grid; float xmin, xmax, ymin, ymax; unsigned int xminset, xmaxset, yminset, ymaxset; char *extra; unsigned int enhancedmode; unsigned int logscaley; unsigned int logscalex; } plotdata; typedef enum { FORMAT_PS = 0, FORMAT_COLORPS, FORMAT_EPS, FORMAT_COLOREPS, FORMAT_PNG, FORMAT_SVG, FORMAT_PSLATEX, FORMAT_COLORPSLATEX, FORMAT_XFIG, FORMAT_COUNT } exportformat; extern char* exportformat_names[]; #endif //PLOTDATA_H laserjock-plotdrop-ead1520/plotdrop.1000066400000000000000000000020241273305510500176570ustar00rootroot00000000000000.TH PLOTDROP 1 "November 5, 2005" .SH NAME plotdrop \- PlotDrop is designed for quick simple visualisation of 2D data series. It is a minimal Gnome frontend. .SH SYNOPSIS \fBplotdrop\fR [filename] .SH DESCRIPTION PlotDrop is designed for quick simple visualisation of 2D data series. It is not intended to encompass anywhere near the full capabilities of GNUPlot. .PP PlotDrop is intended to be used in tandem with an external filesystem browser such as GNOME's nautilus or KDE's konqueror. Data files are added by dragging them from the browser to the file list. .SH "SEE ALSO" gnuplot (1). .SH AUTHOR This manual page was written by Jordan Mantha jordan.mantha@gmail.com for the Ubuntu system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. .PP On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL. laserjock-plotdrop-ead1520/plotdrop.appdata.xml000066400000000000000000000013761273305510500217410ustar00rootroot00000000000000 plotdrop.desktop CC0-1.0 Create graphs and data visualizations

Plotdrop is a simple application for creating quick graphs from 2D datasets using the GNUPlot backend. To use plotdrop, you simply drag and drop a data file from your file browser, configure the options and generate your graph.

http://plotdrop.sourceforge.net/ http://plotdrop.sourceforge.net/screenshot-0.5.jpeg
laserjock-plotdrop-ead1520/plotdrop.desktop000066400000000000000000000003121273305510500211660ustar00rootroot00000000000000[Desktop Entry] Name=PlotDrop Comment=Drag and Drop graph plotting Exec=plotdrop %F TryExec=plotdrop Icon=plotdrop.png Terminal=false Type=Application Categories=Graphics;2DGraphics; StartupNotify=true laserjock-plotdrop-ead1520/plotdrop.png000066400000000000000000000032521273305510500203070ustar00rootroot00000000000000PNG  IHDR00WbKGD pHYs  tIME ; ?7IDATh՚{pT} &PPlEipx@% aQ@LAE4ђ@DlR8E蠕:c (tFq$Bf{oEȞ?;( 9L7QÖeOk(|Q}{a_؟Ia}5.+bg\]m7N pg{=$QB0HIIWӧ!D*ԗOaW|֚X bFZe >n '"bC^v8MO-m}jk/ Ǜ? ޕ?`1.)K#n1ZZb{?)zԈ_LS1% z0U+TEz ɓ._X]C̼.!!Ѐt6NK%,s7>5|89T*C3q~VvASopdD/_XS*wfhTeK;j]G<{`*">[ lˉHou:h:㖗Fd/at.kw {hh:KՊ 9y8YHשT1Mlfefrq6x xt@@pԦy4/}/צaρ3[373ծػJ̺]Q8 7ٳm%UQlh& ))LIݫԟGyzIet=2&߫T* 0'+/$rz1Xro WYDN.EYL!r]m&U~Ji|BthMJr/j!Xf_SWF{!CLJ7pR@JLϯ3MnMә>=c .TBe.uX}T:o._~ ضMQVYg;M2DiFBE@{7ׇK۞2&;w9 #2&yX0HkhL$L*IENDB`