Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Scientific Editing with Inkscape
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bio-IT Workshops
Scientific Editing with Inkscape
Commits
fb8a250c
Verified
Commit
fb8a250c
authored
1 year ago
by
Renato Alves
Browse files
Options
Downloads
Patches
Plain Diff
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
Stage:
Stage:
in 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
figure_editing.qmd
+2
-0
2 additions, 0 deletions
figure_editing.qmd
with
2 additions
and
0 deletions
figure_editing.qmd
+
2
−
0
View file @
fb8a250c
...
...
@@ -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()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment