I am looking for an easy-to-use graphical library for python that can be displayed on screen as well as in pdf format. Thus, I would use the code to draw some things (simple primitives, such as ovals, rectangles, lines and points) for the screen, and then, when everything looks good, print it in pdf.
You can use the Python Imaging Library to draw images that can be easily displayed in various user interfaces, for example. showing jpg. Then use ReportLab . Here's an example that shows how to use ReportLab with an image.
I'm not sure what you mean by the picture on the screen, i.e. if you are working with a specific set of user interface tools. But if it is acceptable for drawing and displaying PDF files without using an intermediate image (jpg, etc.), you can consider the PyX library , which makes it quite simple in graphical form using PDF files.
Tkinter, Canvas, .postscript PostScript, PDF ps2pdf.
.postscript
ps2pdf
postscript (self, cnf = {}, ** kw) . : colormap, colormode, file, fontmap, , pageanchor, pageheight, pagewidth, pagex, pagey, rotate, witdh, x, y.
Matplotlib . . : http://matplotlib.sourceforge.net/examples/event_handling/index.html
matplotlib, , , , .
pygame. , pdf , 2D-.
, ReportLab, PDF . - , .
, - /.
, , - Postscript , , Ghostview; tyo PDF (ps2pdf). , Postscript , .
, Matplotlib, , " , ", .
.
PDF - , , .
: , , PDF , , HTML. ( HTML , )
, -, PDF , PDF . , WYSIWYG.
Source: https://habr.com/ru/post/1743087/More articles:Rails dynamic attachment size - validationZero-coalescing operator & && operator in C # - c #How to set HTML tag id? - htmlTextField Listener - javaGoogle Maps API - google-mapsNon-locking data structures in C ++ Compare and Swap Routine - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1743089/what-are-some-good-techniques-to-organize-js-includes-for-a-large-website&usg=ALkJrhjRDoV1NTTZLYl7jOklITjJQ1wLpwCompilation training in xcode - c ++Binary addition. Is this an overflow? - binaryДолжен ли мы использовать объект Date в java? - javaAll Articles