Skip to content
Snippets Groups Projects
Verified Commit fb8a250c authored by Renato Alves's avatar Renato Alves :seedling:
Browse files

Add coment explaining text workarounds for SVG

parent f5f5b7c1
No related branches found
No related tags found
No related merge requests found
Pipeline #48184 passed with stages
in 14 seconds
......@@ -20,6 +20,7 @@ ggplot(mpg, aes(manufacturer)) +
labs(title="Histogram on Categorical Variable",
subtitle="Manufacturer across Vehicle Classes")
# The fix_text_size option is used to ensure text is editable without squeezing or widening letters
ggsave(file="svg/histogram.svg", width=10, height=10, fix_text_size=FALSE)
```
......@@ -71,6 +72,7 @@ np.random.seed(19680801)
hinton(np.random.rand(20, 10) - 0.5)
plt.ylabel("Here be dragons!")
plt.xlabel("Here be even more dragons!")
# This option ensures text is editable as words rather than individual characters
plt.rcParams['svg.fonttype'] = 'none'
plt.savefig("svg/matrix.svg")
plt.show()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment