question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding subtitle and caption

See original GitHub issue

It would be nice to have the caption and subtitle fields.

From https://ggplot2.tidyverse.org/reference/labs.html

p + labs(title = "New plot title", subtitle = "A subtitle")

image

# The caption appears in the bottom-right, and is often used for
# sources, notes or copyright
p + labs(caption = "(based on data from ...)")

image

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:19
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
Ioana-Pcommented, Mar 23, 2021

I would also really appreciate this feature; btw Plotnine is amazing, thanks for all your hard work.

If anyone needs an slightly hacky, interim method for getting a subtitle that works most of the time, what I’ve done recently is (for single plots) I’ve made them into a 1 by 1 facet plot. So in pandas I set the subtitle as an additional column, with the same value throughout (e.g., df['subtitle'] = "Subtitle text" and passed that as the faceting variable into facet_wrap. You can then use the theme params for strip_text to make it look as similar to a ggplot sub-title as possible. Naturally this won’t work with actual faceted plots, but it’s a start. 😃 Haven’t figured out anything for captions, yet 😕

3reactions
aeturrellcommented, Aug 31, 2021

Very much looking forward to seeing this feature land. Thanks for the amazing work on the package so far!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add subtitles and captions - YouTube Help - Google Support
Create subtitles and captions. Sign in to YouTube Studio. From the left menu, select Subtitles. Click the video that you'd like to edit....
Read more >
Add Subtitles & Captions Online For Free - Kapwing
Use Kapwing's easy editor to add subtitles or captions to your video online. Type your subtitles into the editor or upload SRT files...
Read more >
Add Subtitles to Video - Easy, Online, Free - VEED.IO
How to Add Subtitles to a Video · Select a Video File · Manually type, auto transcribe, or upload subtitle file · Edit...
Read more >
Captions and subtitles – Help Center - Vimeo
Add captions or subtitles to your video​​ Click Settings from within the Closed captions menu (to the right of Transcript). Click the “+”...
Read more >
How to Add Captions or Subtitles to a Video - TechSmith
Inside Camtasia, you can add captions by going under the Audio Effects in the side panel and then Captions. screenshot of how to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found