About 52 results
Open links in new tab
  1. python - How to change the font size on a matplotlib plot - Stack …

    If you are a control freak like me, you may want to explicitly set all your font sizes: import matplotlib.pyplot as plt SMALL_SIZE = 8 MEDIUM_SIZE = 10 BIGGER_SIZE = 12 plt.rc('font', …

  2. Python , Changing a font size of a string variable

    Strings don't have a font size. Strings store sequences of characters (unicode strings) or bytes to be interpreted as characters (byte strings). Font size is an element of presentation, and is a …

  3. Python function for changing text size in Python Shell

    Aug 6, 2019 · There's no way* for Python to control the printed text size, that's simply 100% dependent on the settings of your terminal emulator. The only way you could sort of do this, …

  4. How do I change the text size / font in python - Stack Overflow

    Sep 9, 2022 · I've recently been trying to make a basic game, but I cant change the font size of individual words. I managed to do it in tkinter but it made a pop up window and was very …

  5. How to change fonts in matplotlib (python)? - Stack Overflow

    Aug 29, 2016 · import matplotlib.pyplot as plt plt.rcParams["font.family"] = "Arial" to set the font of the entire plot. If you want to use a different font e.g. for the title, you can use aidnani8's …

  6. font type and font size in python-docx - Stack Overflow

    Jun 18, 2020 · I am generating a MS Word document from a template using python-docx and I need a function that allows me to format text within the same paragraph. I found this snippet in …

  7. python - tkinter - How to set font for Text? - Stack Overflow

    Aug 10, 2015 · Note: before you can create a font object you must first create a root window. # python 2 # import Tkinter as tk # from tkFont import Font # python 3 import tkinter as tk from …

  8. Set paragraph font in python-docx - Stack Overflow

    Jan 11, 2015 · If you use "Heading1" for example, that would change the look of the font, among other things, since it's a paragraph style. At present there is no API for directly applying a …

  9. python - How do I set the figure title and axes labels font size ...

    The string sizes are defined relative to the default font size which is specified by. font.size - the default font size for text, given in pts. 10 pt is the standard value; Additionally, the weight can …

  10. python - Increase the font size and style of a string - Stack Overflow

    Feb 21, 2013 · No GUI, to show only on command line..In command line all the displayed characters have same font size, i want to show a particular string with bigger font size …

Refresh