GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

The m_breaks vector may look a little odd, but that's mostly because the code is compact. Our goal is to produce a vector of breakpoints for our month labels over the course of the year. So we start with a sequence of thirteen monthly start-dates (January Ist 2016, February 1st 2016, etc, all the way to January Ist 2017). Then we calculate the difference between those dates, in integer days. Taking the cumulative sum of those differences gives us the day of the year each of those first-of-the-month days falls on. Finally we subtract sixteen from those numbers to move our label breaks to approximately the middle of the month. These are fine details. But this is why this final chapter is called "Refine Your Plots" and not "Don't Bother Doing Things Properly".

Download link

https://files.mastodon.social/media_attachments/files/116/098/280/527/538/336/original/d8c49e950d471c81.jpeg

Notices where this attachment appears

  1. Embed this notice
    Kieran Healy (kjhealy@mastodon.social)'s status on Friday, 20-Feb-2026 01:44:33 JST Kieran Healy Kieran Healy

    Nearly at a full draft now; maybe getting a little punchy.

    In conversation about 6 months ago from mastodon.social permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.