I've been trying to setup Octave in cygwin and it was straight forward to get it up and running, however I cannot print plots to a file properly. When I plot in Octave I see the plot on the screen correctly, but printing it to a file only results in a black rectangle with axis markers.
From what I've researched it appears that gnuplot 5.0 has a bug in it (http://savannah.gnu.org/bugs/?42838). I tried reverting to gnuplot 4, but it did not work in cygwin and complained about not having the cyggd-2.dll file. I tried finding the package in cygwin that had this file (libgd2) but it doesn't exist in cygwin's package repository anymore and has been replaced by libgd3.
I also tried upgrading to gnuplot 5.1 by downloading the binaries from (http://www.tatsuromatsuoka.com/gnuplot/Eng/cygbin/). However, this didn't seem to resolve the problem; though it's possible that I did not install them correctly.
At this point I'm not sure what else to try. I've tried different file output formats, but all give the same black rectangle with visible axes. I tried EPS, PNG, JPEG, and PDF.
Has anyone been able to get Octave to correctly print figures with gnuplot 5 in cygwin? If so, how? What do I need to do?
Could I possibly use another graphics toolkit? I looked into using FLTK, but couldn't get that to work either. I can register the FLTK graphics toolkit, but when I attempt to instruct Octave to use FLTK for the graphics toolkit I receive the following error: __init_fltk__: no graphics DISPLAY available
I could get around by manually pointing to gnuplot 4.6 which I had on another cygwin installation
i.e. replace /usr/bin/gnuplot.exe with 4.6-version and copy folder /usr/share/gnuplot/4.6/
I'm using Octave 3.8.2 on a windows7x86 machine
Related
I have been requested to make a Python file in order to capture screenshots at regular intervals on a minimal Windows XP machine (sadly), for obvious compatibility reasons I used Python 2.7.10 X86.
The application works as expected on Windows 10 using the same Python version (32 Bits), but does not work on the Windows XP machine.
opencv-python neither Pillow are working, they both indicate that the specified procedure can't be found.
I think that the issue is related to missing dependencies, especially when the XP machine is minimalist...
To be more precise, the python file crashes at "import cv2" line.
If there are any other screenshots and image comparison libraries I'd be glad to know!
The last resort would be going to a lower level, finding the value from it's memory address (from the app), saving it and comparing the old value with the new one, however I wonder if this is even possible with Python...
Thank you for reading, any help appreciated!
EDIT :
Sorry I have forgot to mention that I need to make a comparison with the previous image.
I used : ImageChops.difference(a, b)
Finally, I went for using Pillow instead of cv2 and especially using pip install Pillow==4.0 to resolved the DLL Load Failed (they were both concerned) but I end up having a new conflict which is :
IOError: encoder zip not available
I am making my investigations, but for more details neither doing :
image = grab()
image.save("captures/capture.png")
or
image = pyautogui.screenshot("captures/capture.png")
produces any results so far... :(
Change
image = pyautogui.screenshot("captures/capture.png")
to
image = pyautogui.screenshot(r"captures/capture.png")
I've been working on my bachelors thesis in LyX for about a month without encountering any problems and today, all of a sudden, when creating a PDF LyX just loads indefinitely and even asks me at some point if I want to stop the PDF creating since it takes such a long time. Am I doing something wrong? I have about 100 pages and the PDFs I created lately have been around 100 mb large since they hold very high res images and a lot of them.
In case anyone is struggling with the "convert" functionality usage in Lyx, this is some additional info:
Initially I struggled to make eps to load and be displayed on screen as well as to get it exported to PDF file. I saw that the Lyx latest install had already all "convert blah-blah $$ii $$o" commands predefined and it was still not working.
Here is what worked for me:
sudo mv /etc/ImageMagick-6/policy.xml /etc/ImageMagick-6/policy.xmlout
Here there are two parts -
a) imagemagick needs to be installed on the machine as it provides most of the converters. Following command on terminal would check if imagemagick is installed or not on your system.
identify -version
b) Imagemagick tools should be "allowed" to run - "convert" being one of those. You need to relax some default security policies for that. That is what the above renaming of the policy file does. Detailed information is given in answer to this question on ubuntu forum.
Note - This security policy relaxation is not recommended for web-server machines. Only desktop users may take the risk.
Total newbie questions, here. But I installed raring with cli-extra options. Then installed emacs24. I installed texlive. Now with C-c C-c command I can compile .tex documents in emacs. But I don't get a view of it.
My question is, is this because I never installed an X interface? Or is because I am accessing emacs through SecureShell in the ChromeOS?
Thanks so much, please correct any misunderstandings I have. Anyone have suggestions where I can look to find out?
Without a desktop environment there isn't anything that will be able to display images (the pdf).
An example of this is when you have images like pngs in your .emacs.desktop and you open it in no window mode (-nw), emacs gives an error as linux terminals don't support images.
If you want this functionality I'd recommend either loading a desktop manager like xfce, or open the pdf in chrome os, and hopefully it will update automatically when the pdf is re-rendered, otherwise you should just be able to refresh to update it.
Here is the output of my paths:
/Applications/MATLAB_R2009b.app/toolbox/curvefit/curvefit
/Applications/MATLAB_R2009b.app/toolbox/curvefit/cftoolgui
/Applications/MATLAB_R2009b.app/toolbox/curvefit/sftoolgui
When I run anything using
spap2
csapi
I get
??? Undefined function or method 'csapi' for input arguments of type
'double'.
Any idea what I'm doing wrong?
This post seems to address a similar issue but it's not re my version, which is R2009b.
Thanks to all for your input. At the end, this was resolved by running an upgrade to 7.13 (2011b). I believe this may be an issue similar to the post I linked in the OP.
It appears that spline plotting functions (former Spline Toolbox, deprecated) are now all in the Curve Fitting Toolbox. So if you have earlier versions of Matlab (< 2010), it will search for those functions in the wrong place (Spline Toolbox) even if you have the Curve Fitting Toolbox. I presume those functions would only work on an older Matlab install if you happen to have the Spline Toolbox installed as well.
Again, the solution here is to upgrade both your Matlab install and your Curve Fitting Toolbox. Then you'll have access to the functions I mentioned above.
I need to do some light image processing on large image, and I try to use ImageMagick for that. Unfortunately, the API documentation has a very low information content, with documentation similar to:
MagickDeleteImageArtifact
MagickDeleteImageArtifact() deletes a wand artifact.
The format of the MagickDeleteImageArtifact method is:
MagickBooleanType MagickDeleteImageArtifact(MagickWand *wand, const char *artifact)
A description of each parameter follows:
image
the image.
artifact
the image artifact.
Could anybody suggest a few information sources for ImageMagick that would have, you know, information?
(and yes, this piece of "documentation" is pasted from ImageMagick web site, with the incorrect parameter)
Edit: Here is the context: I develop an iOS application, so I want to call ImageMagick from the C language (or Objective-C or C++). The need is to split large images that would not fit in the limited amount of RAM of an iOS device into smaller "tiles" (and downsample for lower resolution versions too. But once I have the tiles, I can do that using only iOS facilities).
Edit 2: Using the command line, I can achieve this tiling with the "convert" command with corresponding parameters. So my immediate need would be to translate such a command line command into the relevant set of API calls.