Latex. Misplaced Figure - position

I'm trying to insert an image into the text, but the second one is misplaced and I don't know why because I've wrote the same code than the previous image.
Does anyone can help me with this?

the problem is that the image is greater than what is left in the paper.
You need to do three things if you want to fit it in the same page:
substitute line 345 for "\begin{figure}[!h]"
substitute line 348 for "\includegraphics[width=XXX\linewidth]{figuras/hl7_hapi_users}" and change the valor of XXX until it fits.
write \pagebreak in line 352.

Related

How to transform lines of code into a comment in Python3

just wondering how to convert a set of code into comments, without having to go through each individual line of code and put a # at the beginning. Was thinking that maybe there was a quick way to highlight the code and then convert it into comment, atm i'm just cutting it off the code and then re-pasting it in later on.
Much appreciated :)
P.S. i m using Pycharm as my IDE
In jupyter notebook, we select lines of code and press ctrl and / key simultaneously to convert a set of code into comments. Also same for vice versa.
You can try it in Pycharm.
You can use the (""") symbol before and after the text you want to comment out. It is not exactly a comment and more of a text constant, but either way it is often used for documentation, so you can use it for multiline comments except for some cases when it causes unexpected errors
To avoid such cases you could simply use multiple single line comments by selecting the desired lines and using ctrl+/ to comment them out

Python: Writelines - All the way to Margins

I am working to ingest an online text document, and then reprint it to a text file. The problem is, that there are only about 70 characters printing to a line, which is in accordance with how the document looks online. I would like to change that, so that the lines will wrap all the way around, and will instead go all the way to the margins of the text document, and then come back. Or, I would like to be able to reset the number of characters that print to a line, say 100 or 120. instead of the 70. However, I have not been able to do this.
Please see the following photo:
Below is my code:
import requests
from bs4 import BeautifulSoup
page = requests.get("http://classics.mit.edu/Aristotle/rhetoric.mb.txt")
soup = BeautifulSoup(page.text,"html.parser")
with open("Art_of_Rhetoric.txt", "w") as file_object:
#soup.text.replace("\r\n","")
file_object.write(soup.text)
I've tried a number of things. Including:
Putting the text into a list, line by line, and then trying to print out the lines. I only just duplicated the lines I printed.
As you can see, I tried to search for any line breaks that were within the next and remove them. That also didn't work.
I even found This in some python documentation, but it only seems to allow you to print out up to 70 characters a line anyway.
I'm pretty sure there is a simple solution to this, I just don't know what it is.
I would like the output to my text document to look like it the above in "paragraph 1". Currently, the output comes out in a manner similar to the paragraph labelled "Paragraph 2".

How to make Phaser.Geom.Line draggalble?

1). I want to know how to make a line, created with Phaser.Geom.Line, draggable?
or
2). how to draw a line with Phaser.Gameobjects.Line(); ??
I am able to create line with (1) but can not make it draggable. But on the other hand I can not create a line with (2) although there are no errors in console.
Please help. Thanks

How do you import a text point cloud in MeshLab?

I have an XYZ text file, generated from a Renishaw touch probe on a CNC mill, that I'm trying to open in MeshLab. I can't see anything after importing. It's a simple file of just XYZ positions. A short example:
X04.0000Y01.1374Z-01.5000
X04.5000Y00.9715Z-01.5000
X05.0000Y00.7969Z-01.5000
X05.0000Y00.8322Z-01.3356
X04.5000Y01.0022Z-01.3431
X04.0000Y01.1603Z-01.3500
X03.9000Y01.1708Z-01.3491
X03.8000Y01.1392Z-01.3472
X03.7000Y01.1236Z-01.3461
This example is so short it would just be a line if you connected the points. I tried putting spaces between each value as the import dialog box asks and nothing shows up on screen. There is little or no documentation on how to accomplish this.
Can anyone open this simple text file and provide the steps to accomplish this?
The following very simple trick worked for me.
Replace all the occurrences of X, Y and Z with a space (I did it in Emacs and your text editor can surely achieve the same).
Save your file with the extension xyz (e.g., as CNC.xyz).
Open it in Meshlab.
The picture below is a printscreen showing the points you provided. (note that I have made them bigger by selecting "Render > Show Vertex Dots" and by increasing the point size in the menu available after pressing the "Show Layer Dialog").
Replace the letters X, Y, Z with spaces. For meshlab you have to leave it like this:
24.99221 9.49049 13.06404
25.99253 9.49049 12.77443
25.99253 9.85957 12.66110

Strings inside of comments

I noticed that when I place quotations around something in a comment line, the words in quotations change color to indicate that the interpreter sees them as a string. I found this confusing because I thought that the interpreter was supposed to ignore comments. I am curious to know if I did something wrong. The code is below.
# The output of the concatenation above would be:
# 'spameggs'
'spameggs' changes color even though it is part of a comment line.
Its showing me as comment ,No change of color of the text you are mentioning,which editor are you using .Seems like some editor problem.Try to open it in IDLE.IT will be all red color.
Thanks
It is a bug in Qpython3 for android. In Liclipse this worked fine, and remained as a comment.

Resources