Hello Latex Community
I'm currently working on my Bachelor Thesis and encountered a problem concerning symbols.
When I create a x/y graph I normally use symbols avaible in Latex (i.e. \filledsquare \bullet etc.) as data points.
This way I can explain them in the figures caption (E.g. Fig. 1: Glucose consumption of cultures incubated with ($\filledsquare$) and without ($\square$) ...).
Recently I had to create some bar graphs. These consist of 1. a black bar 2. a white bar 3. a black bar with white shading 4. a light grey bar with white shading.
I would like to explain these bars in the figure's caption using squares (or something similar) with the corresponding color and shading.
How do I create symbols with these shadings (I am talking about: e.g. a black square with thin white lines going from top left to bottom right)?
I already searched several symbol packages, but there seem to be quite many and it is hard to find the right symbol, even though it may exist anywhere 'out there'.
Thanks for any replies!
BTW: I didn't include a MWE because this isn't really a question which has to do with Latex code.
Graphics, Figures & Tables ⇒ Shaded Version of $\filledsquare$
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Shaded Version of $\filledsquare$
If so, then why did you ask this question in a LaTeX forum? A MWE is always helpful. It makes a problem more comprehensible. First of all it would be very interesting how you create your bar graphs.sbb wrote:[…] I didn't include a MWE because this isn't really a question which has to do with Latex code.
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Shaded Version of $\filledsquare$
Well, I didn't create a MWE because I actually don't have any CODE which is not working but I just simply have no idea how to solve my problem.
I'm hoping for an answer saying "use that package" or try this "symbol package". Until then, there will be no code for a MWE, so how would it be helpful in this case?
I create my graphs with Microcal Origin and export them as a pdf which is then embedded into latex.
I'm hoping for an answer saying "use that package" or try this "symbol package". Until then, there will be no code for a MWE, so how would it be helpful in this case?
I create my graphs with Microcal Origin and export them as a pdf which is then embedded into latex.
Shaded Version of $\filledsquare$
Nonsense. This is a perfect candidate for a minimal working example. We need to see how you're creating the shadings and what they look like in the charts if we're going to have any chance of trying to match them in the key.
If you are asking strangers to help you with something who are doing so merely as volunteers in their own free time, the least you could do would be to make it easy for them to do so. If you don't give us a minimal working example (by which we mean code that "works" in exhibiting the problem, not code that really works), we're going to have to try to create one for ourselves, since something like this cannot be answered without testing.
See the Post on Avoidable Mistakes, and also I recommend "How to Ask Questions the Smart Way".
At least make a dummy chart with your software and upload it here. If you're thinking how you create these charts, then maybe the TeX Catalogue OnLine section on charts and diagrams would provide some clues.
If you are asking strangers to help you with something who are doing so merely as volunteers in their own free time, the least you could do would be to make it easy for them to do so. If you don't give us a minimal working example (by which we mean code that "works" in exhibiting the problem, not code that really works), we're going to have to try to create one for ourselves, since something like this cannot be answered without testing.
See the Post on Avoidable Mistakes, and also I recommend "How to Ask Questions the Smart Way".
At least make a dummy chart with your software and upload it here. If you're thinking how you create these charts, then maybe the TeX Catalogue OnLine section on charts and diagrams would provide some clues.