Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Helper I
Helper I

Changing font in Python visual

Does anyone know if it's possible to render a Python visual in a non-default font (default=Deja Vu Sans) in Service? I'm trying to create a Python visual using the DIN font to match the rest of my report, but in the Service, that visual just renders using the default font. I thought maybe it was because DIN isn't pre-loaded so tried using a rough equivalent of Bahnschrift, but that didn't work either. Thoughts?

Super User
Super User

You may want to provide more details.  Which renderer are you using? Pyplot ?


How to Change Fonts in Matplotlib (With Examples) - Statology

Sorry - yes, matplotlib pyplot.


The link you provided shows how to change font in the python code itself. I don't have any issues with that. I can change the font and it updates fine in Power BI Desktop. When I publish the report to Service, though, all those font changes to DIN don't hold and the python visual defaults back to matplotlib's default font of Deja Vu Sans.

That's too bad. Maybe you can ask the product team what they support in that area. I am only aware of an article about supported python packages.

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors