How to find out Altair default title font type and font size? - altair

I am currently working on a Streamlit application. I use mainly Plotly and Altair for my plots. I would like to use the Altair default font type and font size for my Plotly chart titles. How can I find out the title font type and font size set as default on my Altair plots? Thanks in advance for your help.

The charts from Altair are rendered using the JS library Vega. I believe Vega just specified whether the font should be serif, sans-serif, monospace, etc and then uses the default font in your browser for this font category. This comment from a Vega maintainer seems to suggest so as well.
There is also a vega-themes package that defines overrides to the default theme via CSS.
For font-sizes, I believe the default are what is listed in this file

Related

bangla font is not working in pdf-lib custom font

I have a problem with the Bangla font.
I've got a problem when I embed Bangla font in PDF-LIB. If any fonts are supported then the output didn't show correctly. It shows like a small rectangle.
Here is the image
And most of time the program is not runned. And terminal say like:
regeneratorRuntime is not defined

Changing Font when plotting with Gnuplot

When I plot a graph in gnuplot, I get the following message:
qt.qpa.fonts: Populating font family aliases took 320 ms. Replace uses
of missing font family "Sans" with one that exists to avoid this cost.
Error: plot window (gnuplot_qt) not responding - will restart
I get that I have to change the font to "Sans". Right? If so, how do I do that? I have no idea.
Add this line to .zshrc...
export GNUTERM="qt font \"Arial,12\""
This fixed it for me on Mac Big Sur. You can omit the ",12" if you want to keep the default font size, but this may look a bit small in Arial.
The Mac font on Big Sur is called "San Francisco" or "SF" but I have not been able to find it by these names, or the earlier "Lucinda Grande". The best fit is probably...
export GNUTERM="qt font \"Helvetica\""

How to set Custom font face for Calenderview?

How to set custom font face for calenderview? using "android:dateTextAppearance" i can only change the size or appearance and not font face.i have tried via asset. that also didnt work.please suggest me a solution.

How to have a background image in Altair Python

I'm trying to use Altair to have a dynamic map, I can easily do the dynamic part, however I am trying to add an image as background of the plot (bitmap image), I cannot find any functions in this purpose and every example on the Altair documentation is based on Url/Json feature. Does anyone have already done this kind of plot ? Is it possible to maybe combine a matplotlib with the background image and a dynamic part such as in Altair ?
Thanks Everyone,
Antoine.
It is not possible to embed a bitmap image within Altair. Vega supports an image mark, but that has not yet made its way into Vega-Lite, which drives the API of Altair.
Requests for this feature in Vega-Lite can be tracked in this GitHub Issue.

Using font character as a map icon in KML

In the current project a custom equivalent for Font Awesome is used for all required icons in the web application.
Is it possible to use Font Awesome, or some other font based symbol instead of PNG graphics as a KML icon?

Resources