I got a set of elements, each element has four node (points). I want to use patch it as it can be done in MATLAB. I tried to find an example of matplotlib.patch but I could not find any. Does anyone have an example of matplotlib.patch ?
Thx
After looking into what patches in MATLAB are I think I found what you are looking for. There is quite an extensive code snippet over at the matplotlib documentation that will help you: tutorial
Related
I just want to do a quick project on my spare time :
I take a photo (with my webcam) of a page of a book with my finger pointing at a word on the page. Something like that:
I want to use opencv so I can isolate the word and translate it with OCR, etc ...
I cant' figure out exactly what to use in opencv to achieve this (I mean the "extraction" of the word in the complete photo), i read the tutorials but there is a lot of possibilities, so if someone can guide me by telling me what kind of functions do I need to use that would be kind :)
Thanks :)
I would like to list the lines where there is a FAIL written.
As it sounds very simple in VBA it seems fairly complicated to integrate that in a cell formula.
So I wanted to know if there was a simple way of listing all thoses matches.
I have tried this =TEXTJOIN(",";TRUE;IF(Y23:Z90="FAIL";1;"")) just to try a function I saw on internet but it gives me #value! error and I don't know why.
I then wanted to do something like =TEXTJOIN(",";TRUE;IF(Y23:Z90="FAIL";ROW(Y23:Z90);"")) but I'm guessing this would definitely not work.
I saw that we could do it with index and aggregate but it seems really too complicated for such a simple problem. However if this is the only solution I will take a more serious look at it.
Does anyone has a better way to do what I want to do?
Thanks in advance!
Ok thanks to Peter, I solved my problem and {=TEXTJOIN(",";TRUE;IF(Y23:Z90="FAIL";ROW(Y23:Z90);""))} works and gives me a list of the lines.
I'm currently working on a way to generate Powerpoint presentation from Excel file. So, I decided to use Python as there is python-pptx which allows to work on .pptx files.
I have to use a standard file on which I will add some shapes and texts but just whithin the first slide.
I've read python-pptx documentation but I didn't find a way to work on a defined slide (the first slide of my standard file). I found just a way to add a slide and work on it.
Can someone explain how to do it ?
If you don't understand my problem, tell me I will try to rephrase it.
Thanks
N.B : I'm French, on the web I didn't find a French documentation so I had to search English documentation. It's possible that I didn't understand something about my problem when I read it. Sorry, if you find it easily. I'm still working my English :D
Is this what you are looking for?
prs = Presentation('existing-prs-file.pptx')
first_slide = prs.slides[0]
# do something with the content of the slides
prs.save('new-file-name.pptx')
btw I have just copied it from the docs.
Did anyone succeed in building BNFC with ghc-7.2.1 and alex-3? I was trying to fix it manually, but there are lots of errors. Does anybody know where can I find some patches that will help me to get it done? Thanks in advance.
I've placed a modified darcs repo at http://www.tiresiaspress.us/haskell/bnfc/ . It works with ghc-7.4 and alex-3 (I didn't change the docs, so it still says alex-2). Very hackish, YMMV.
I love pure ascii text documentation, like this one:
http://www.catonmat.net/download/sed.stream.editor.cheat.sheet.txt
But I don't know how to write it easily. There are lots of tables in it. Anyone can explain it please?
Thanks.
Try the Emacs Table Mode: http://www.emacswiki.org/emacs/TableMode (http://table.sourceforge.net)
Take a look at https://www.multieditsoftware.com/ME2008.php
As far as I remember there're such feature.