Code Monkey home page Code Monkey logo

Comments (6)

rchurchley avatar rchurchley commented on June 10, 2024

I've had my eye on this too 👍

Even if \usepgfplottheme doesn't exist, we can still bundle off the pgfplots code into a little sub-package and include it with \RequirePackage. We can then call the package only when pgfplots is available, much like we currently \usefonttheme only under XeLaTeX or LuaLaTeX. This answer appears to show how to do that.

from mtheme.

benjamin-weiss avatar benjamin-weiss commented on June 10, 2024

From #88:

Right now the pgfplot theme is tied to a particular color. Ideally we would have a pgf color theme, which could actually come from the color theme itself in order to provide consistency, and a structural theme, i.e. all those axes, legend and grid customizations.

I think it would be sufficient to define the set of colors in the plotcyclelist. Axes, legend, grid and so on seems to be working just fine already.

screenshot_dark_plot

Screenshot created using the following color adjustments:

\definecolor{mBloodRed}{HTML}{FF0000}
\definecolor{mYellowBastard}{HTML}{EAF02C}

\setbeamercolor{normal text}{%
  fg=white,
  bg=black!90
}

\setbeamercolor{alerted text}{%
  fg=mBloodRed
}

\setbeamercolor{example text}{%
  fg=mYellowBastard
}

from mtheme.

rchurchley avatar rchurchley commented on June 10, 2024

Axes, legend, grid and so on seems to be working just fine already.

Which version of the theme are you working under? I briefly broke the behaviour of mbarplot on my branch, so if you have that checked out you may be seeing the default beamer colour-choosing behaviour. Perhaps this is a sign to drop the Tol colours from the theme altogether?

from mtheme.

benjamin-weiss avatar benjamin-weiss commented on June 10, 2024

That was the current Master with your first patch in #88 applied. As I was focusing on the axis, and grid color I didn't recognize that it was broken.

So, what I wanted to show is that with respect to the axis, grid and legend colors it is already dependent on the beamer color normal text. So here is a new Screenshot (without broken mbarplot behavior):

screenshot_dark_plot

from mtheme.

benjamin-weiss avatar benjamin-weiss commented on June 10, 2024

I think after we split the pgfplotstheme into a separate file this is essentially solved and can be closed, right? Or are there still pending issues?

from mtheme.

matze avatar matze commented on June 10, 2024

Or are there still pending issues?

Nope, absolutely right.

from mtheme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.