Using Dia for diagrams
A program that was specifically made for diagram-making? Is it possible?
Download the whole article as PDF
Short URL: http://fsmsh.com/3013
- 2009-02-13
- User space | Easy
-
Write a full post in response to this!
This content was sponsored by:
Everybody needs diagrams. Most users need to create one more often than they think: that flowchart for a presentation, that sketch of the bird feeder to build this weekend, or a time line. Getting more technical, there are always circuits and blueprints and the like. Stop wasting time with an office app, the GIMP, or a paint program: use Dia, an easy yet powerful made-for-diagrams editor.
Getting Dia
If you’re running GNU/Linux, then just snag Dia from your distribution’s repositories. If you’re using Windows, then it’s more complicated: your best bet is following these instructions to install Dia on Windows. Open Dia up, and—well, nothing fantastic happens. Just like most programs, you’ll see a canvas, a toolbox, and a toolbar to open, save, copy, get help, etc. The canvas has pretty little squares, to check the scale and orientation of things you draw. The toolbox might seem a bit different. Even still, it really doesn’t seem to be quite enough.
Let’s explore what you can do with it.
Getting started
I already mentioned the canvas. If you’ve ever used Paint, Powerpoint, OpenOffice Impress, the GIMP, or any similar program (and I’m sure you have), you’ll know exactly what to do: you draw stuff on it. To decide what you want to draw you use the toolbox, which is the window with all the icons in it. Make a line: click the “line” icon in the toolbox (it looks like a backslash with a dot at each end), click on the canvas, and drag somewhere else on the canvas.
If you don’t like the way it looks, grab one of the ends of it (with the yellow square), and click and drag to resize it. I told you this was easy!
This line is straight, with nothing special at the end, and it’s pretty much boring. (If you have an arrow at the end of your line, don’t worry, this will make sense anyway.) So, suppose you want it to be more interesting: at the bottom of the toolbox there are three wider icons, with three straight lines in them. They stand for the beginning, middle, and end of the line. Click on one, and change it to an arrow (if it was already an arrow, change it to something else). Make a new line, and then change the middle and right icons. Make another line. See the pattern? It’s not about left and right, it’s about start and finish.
To make a rectangle, you could draw four lines; however, that’s tedious at best, and inaccurate at worst. Conveniently, Dia has a rectangle tool. It looks like a rectangle, right above the line tool. Try drawing a rectangle on the canvas.
Now be brave, and draw an ellipse.
Note that the rectangle and ellipse have the same line style as the one you picked for the line. If you don’t like it, change it the same way you changed the lines.
Write a full post in response to this!
Similar articles
Do you like this post?
Vote for it!
Copyright information
This article is made available under the "Attribution" Creative Commons License 3.0 available from http://creativecommons.org/licenses/by/3.0/.
Biography
Timmy Macdonald: Timmy Macdonald is a Christian, Ubuntu user and Pythoneer. When he's not studying, coding, or playing a musical instrument, he writes on his blog: http://blog.tsmacdonald.com. Any time left over is spent plotting the demise of the third person.
- Login or register to post comments
- 18076 reads
- Printer friendly version (unavailable!)




Best voted contents
-
Special 301: FOSS users. Now we're all Communists and Criminals
Gary Richmond, 2010-03-05 -
Microsoft's Internet Driving Licence: stupid, unworkable and unenforceable
Gary Richmond, 2010-03-10 -
The Bizarre Cathedral - 69
Ryan Cartwright, 2010-03-12 -
Interview: Nina Paley (author of "Sita Sings the Blues" and the two "Minute Meme" animations)
Terry Hancock, 2010-03-15
Buzz authors
Free Software news
- guaka: http://chdk.wikia.com/ #awesome #freesoftware for my #canon #ixus http://casarobino.org/node/10395
- http://chdk.wikia.com/ #awesome #freesoftware for my #canon #ixus
- Eben Moglen vs The Cloud: http://ur1.ca/q70n #fsf #cloudcomputing #freesoftware
- Op-ed from @eximious on Women in #FreeSoftware. *cough* *cough* Come to Libre Planet to discuss such topics. http://bit.ly/c1aWk9
- You can download video/audio of the Richard Stallman lecture from Feb 17th now! http://csee.wvu.edu/rms/#download #freesoftware
Similar entries
Other sites
- The Top 10 Everything (Dave). The good, the bad and the ugly.
- Free Software news (Dave & Bridget). All about free software -- free as in freedom!
- Book Reviews: Illiterarty (Bridget). Book reviews, blogs, and short stories.
Hot topics - last 60 days
-
Linux performance: is Linux becoming just too slow and bloated?
Mitch Meyran, 2010-01-26 -
Web code is already open - why not make it free as well
Ryan Cartwright, 2010-01-20 -
Save "Sita Sings the Blues" from the Flash format: can you convert FLA?
Terry Hancock, 2010-01-29 -
Microsoft's Internet Driving Licence: stupid, unworkable and unenforceable
Gary Richmond, 2010-03-10 -
Special 301: FOSS users. Now we're all Communists and Criminals
Gary Richmond, 2010-03-05
Hot topics - last 21 days
-
Microsoft's Internet Driving Licence: stupid, unworkable and unenforceable
Gary Richmond, 2010-03-10 -
Special 301: FOSS users. Now we're all Communists and Criminals
Gary Richmond, 2010-03-05 -
The Bizarre Cathedral - 69
Ryan Cartwright, 2010-03-12 -
Interview: Nina Paley (author of "Sita Sings the Blues" and the two "Minute Meme" animations)
Terry Hancock, 2010-03-15
Odiogo
Free Software Magazine uses Apollo, project management and CRM for its everyday activities!




While I've only had a quick
Submitted by jtappin on Sat, 2009-02-14 23:39.
Vote!While I've only had a quick look at dia, it doesn't really look to offer as much capability as the granddaddy of all drawing tools -- xfig.
Agreed
Submitted by mjjzf on Tue, 2009-02-17 12:14.
Vote!I agree. It is ugly as sin, but it works - and Dia is not noticeably easier to use (which would be the selling argument) than Xfig.
__
FSF member no. 6426
Yes and no ...
Submitted by Golodh on Wed, 2009-02-18 17:04.
Vote!Well, XFig is a drawing package first, and yes, you can also use it to draw diagrams. Dia on the other hand is a specialised package for drawing diagrams.
Dia has two advantages over Xfig when it comes to diagrams
1) Dia is multi-platform, and not just Linux-based. Well, an enterprising soul may be able to get XFig to work under Windows but it's not worth it, IMO, since Dia does what you need for diagrams. And for general-purpose work I'd generally prefer the Gimp.
2) Dia, being an object-oriented vector drawing package, redraws the connectors when you move the diagram boxes about. Xfig, being just a drawing package, doesn't. This is fairly basic and indispensible functionality when drawing large diagrams (unless you already know what the diagram looks like and only need a tool to draw it).
Dia also has disadvantages. The worst one being that it (in version 0.96.1) crashed a few times when I used it to draw (fairly large) diagrams. Poof ... diagram gone. That behaviour one might tolerate in beta software, but not in a release version. It gives OSS software a poor name.
As the Dia website says, Dia is basically a knock-off from Visio. That's not something to be ashamed of though. Dia is great for those who don't need the quality and functionality of Visio (or who don't wish to pay its hefty price), and who are willing to save every five minutes or so.
Drawing tools
Submitted by jtienhaara on Wed, 2009-02-18 23:29.
Vote!Nice intro to Dia, Timmy!
I used to be an xfig devotee, and refused to switch to anything for UML diagrams until Dia came along.
I have since tried everything under the sun and no free/open source drawing program comes anywhere close to Dia IMHO for power & ease of use; and many commercial applications fall behind too.
There are 4 things I love about Dia:
1) It's simple and intuitive to do most tasks.
2) Layers.
3) Snapping (to objects, to grids, etc).
4) Tons of file formats to export to.
I would argue that xfig is a lot less powerful, and Graphviz is a lot more involved. And Visio is a whole lot less free! So Dia fills an important niche.
But to each his own! These days I use Dia even for laying out rooms & choosing paint colours, something it was definitely not designed for, but it's pretty darned good at. :)
Cheers,
Johann
Dia looks like a useful tool
Submitted by Codifex on Fri, 2009-02-20 01:52.
Vote!I just had the pleasure of installing and running Dia for the first time. (It looks to be a derivative of Gimp.)
At first, I thought it was a little anemic as far as usefulness goes... that is until I began exploring the floating toolbar.
There are lots of useful "sheets" that contain object shapes from electronic, flowchart, network, and electrical to types I've never heard of before.
It's just what the doctor ordered for my personal project diagramming tasks.
Thanks to the Dia team!
Codifex
I'd rather be flamed with the truth than be left blissfully ignorant.