1 week, 2 days ago warrennnParticipant
I am using DataGraph together with Octave to create publication quality plots for a physics book I am working on. I formerly used Igor Pro (for more than 20 years), but that product is extremely expensive and is poorly supported on the Mac.
I would like to remove the numbers on the x-axis and replace them with labels I have generated using LaTeXit (which can be dropped on the plot). Does anyone know of a way to do this? Unclicking “Draw x numbers” also removes the axis, something I don’t want to do.
Thanks very much,1 week, 1 day ago dgteamModerator
Welcome to the forum! Sounds like a big undertaking.
To remove the labels in the axis, hide the default axis and add an Extra Axis command. This command has more flexibility and can be used to draw tick marks only by changing the Drawing style to ‘Only ticks’. Make sure to also set the Position to the proper location.
Note that we also have support for many LaTex commands. See Text Formatting.
Also, anything you paste from LaTeXit into DataGraph, can be copy and pasted from DataGraph back into LaTeXit for editing. Then you don’t have to save every LaTeXit file.
Let us know if this helps solve your problem.
Thanks for the suggestions. It didn’t seem to work, unfortunately. I removed the x-axis by unchecking the “Draw x numbers” box. I then used the “Add extra axis” command. When I selected “only tics” in the Drawing Style box, it removed the line again (and left the tics). How do I keep the line and tics and remove the numbers?
It turns out that I got close to what I wanted on the x-axis by selecting “angles” for the units. I wanted integral multiples of \pi on the x-axis. I got this to work, but the font was weird when I selected “Latex” on the fonts menu. The number was correct but the \pi was an ugly non-Latex symbol.
I then searched and found that you suggested that one can download the Latin Modern Math fonts (a .otf file) which I did and double clicked on the .otf file. When I installed it, the correct \pi still did not appear on the x-axis. Also, this fonts file doesn’t appear to have any math symbols or Greek letters when I use Apple’s font book.
I have a complete and up to date installation of TeX Live on my machine. Is there a way top use the TeX fonts in DataGraph?
OK, I seem to have figured out how to use the Math fonts. Apparently, instead of using LaTeX fonts in the style panel, you select “Specify” and use Apple’s font book to change the font. This wasn’t obvious since you need to click on the selected font to get the font book to work. I now have a reasonable symbol for \pi (not the TeX version since it slants differently).
Thanks!1 week, 1 day ago kourosh kalayehParticipant
I am also very interested to see if it is possible to use TeX fonts in DataGraph. Based on documentation we should, which make me wonder what I am missing.
One of the very nice features of DataGraph (not shared by my previous graphing app: Igor Pro) is the ability to create a Latex snippet in Latexit and drag the pdf from its output window directly onto a DataGraph graph. I recommend this since simply supplying Latex fonts in DG will not use many of the nice features of Latex and the results will not look quite right. Latexit is a complete Latex system and will produce beautiful output which can be easily dragged onto a graph.1 week, 1 day ago kourosh kalayehParticipant
How about positioning them? You do that manually? Taking an x-label as example, you make it in LaTeXiT and then drop the generated pdf on graph, and then position it manually?
Correct. Drop the snippet onto the graph and place it wherever you want using the mouse. Works like a charm.1 week ago kourosh kalayehParticipant
Thanks warrennn. Makes sense. But I prefer to have DataGraph generates all labels since otherwise positioning them consistently between different graphs becomes hassle.
You must be logged in to reply to this topic.