I'm wondering to know how to draw some lines in a figure or and add some linewidth on an image but I've trying I have not get any solution.
This is the code I'm trying:
from pylatex import Document, PageStyle, Head, MiniPage, Foot, LargeText, \
MediumText, LineBreak, simple_page_number, Figure, NoEscape,\
StandAloneGraphic, Package, Command, VerticalSpace,\
HugeText, Section, NewPage, Center, TikZDraw,\
TikZCoordinate, TikZOptions, TikZ, TikZNode
from pylatex.utils import bold
import os
def generate_header():
#Imagenes Portada
image = os.path.join(os.path.dirname(file), 'logo.png')
with doc.create(Center()) as center:
center.append(VerticalSpace("20pt"))
with center.create(Section('Screen 1', numbering=True)):
center.append(VerticalSpace("20pt"))
with center.create(Figure(position='h!')) as image1:
image1.add_image(image, width='317px')
image1.add_caption('Description')
with image1.create(TikZ()) as pic:
# pic.append(TikZDraw([TikZCoordinate(-5, 0),
# 'rectangle',
# TikZCoordinate(7, -2)],
# ))
pic.append(TikZDraw([TikZCoordinate(0,0),
'circle'],
options=TikZOptions(radius='5pt')
))
What I get is the circle below the image and not over the figure.

tikzpictureafter the diagram. They are two separate boxes, and are placed one after the other. You should rather generate code along the lines of this example https://tex.stackexchange.com/a/9561/ – Torbjørn T. May 26 '21 at 16:17