Results 1 to 10 of 10

Thread: QtiPlot or other plotting software: how to assign symbol/marker style to a number?

  1. #1
    Join Date
    Dec 2013
    Beans
    142
    Distro
    Ubuntu 20.04 Focal Fossa

    QtiPlot or other plotting software: how to assign symbol/marker style to a number?

    I am new to linux and the only barrier for using it in my everyday work is a scientific plotting software for publication quality plots. I am looking for something similar to Sigmaplot or Grapher, but for free.

    I just tried out QtiPlot. A features I could not find was to assign a symbol/marker style to a number.

    Example I have a spreadsheet with three columns x y z. x and y would be my data for a 2-D scatter plot and z would contain a number (e.g., 1, 2 and 3) that could assign to each of my x-y pairs a specific marker type or marker color (e.g. 1= filled circle, 2= star and 3= square).

    Does anyone use scientific software for plotting lots of data and managed to do this type of plot in QtiPlot?

    Any help appreciated, also suggestions of other scientific plotting software I may have missed...
    Last edited by zircon_34; February 27th, 2014 at 02:49 AM.

  2. #2
    Join Date
    Nov 2009
    Beans
    3,336

    Re: QtiPlot or other plotting software: how to assign symbol/marker style to a number

    Matplotlib and small programs written in python may give you what you need

    Here is a search I did on what you requested ......

    https://www.google.co.uk/search?q=as...otlib&tbm=isch

    I have only done small programs and whether they meet your specifications for high quality - that is something only you
    will be able to tell by knowing what it is that you require and then by seeing what you can obtain for free.

  3. #3
    Join Date
    Aug 2013
    Beans
    5

    Re: QtiPlot or other plotting software: how to assign symbol/marker style to a number

    You should really check out Veusz.
    http://home.gna.org/veusz/
    It is in the repos with updates available via a PPA which can be found on the Veusz website.

  4. #4
    Join Date
    Dec 2013
    Beans
    142
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: QtiPlot or other plotting software: how to assign symbol/marker style to a number

    Alright, thanks for the links! Its in my list, I will try those out.

  5. #5
    Join Date
    Dec 2013
    Beans
    142
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: QtiPlot or other plotting software: how to assign symbol/marker style to a number

    Quote Originally Posted by 23dornot23d View Post
    Matplotlib and small programs written in python may give you what you need
    I actually never thought of using python (learned a bit of C++ in the past), but just checked out some tutorial, seems I am going to give it a try do you use python-scitools with Matplotlib, which packages could you recommend for download?


    Quote Originally Posted by 23dornot23d View Post
    I have only done small programs and whether they meet your specifications for high quality - that is something only you
    will be able to tell by knowing what it is that you require and then by seeing what you can obtain for free.
    Nothing fancy, I just meant no plot like in excel. Just plain white background, customizable axis, standard symbols (square, circles, star, etc...), easy clonable graphs. I use pdf or eps format. More like 2-D plots done in GnuPlot but I prefer a GUI to have the work done with spreadsheets and datahandling of many data. I also need sometime to do ternary diagrams, apparently veusz is capable of doing that and has a nice GUI!

    I still have to try the marker styles (title of the thread) in the two different programs! but many thanks for the recommendations!

  6. #6
    Join Date
    Nov 2009
    Beans
    3,336

    Re: QtiPlot or other plotting software: how to assign symbol/marker style to a number

    This is a quote from the methods used in the below link .......... but allows for style to be matched to a line or marker .........

    I think that this is what you may be after ..... how difficult it will be to set up compared to graphing programs that do most
    things automatically may be the time consuming part ...........

    The method pylab.savefig(FILENAME.FMT). The .FMT can be one of several, e.g., .eps, .svg, .ps, .pdf, .png, .gif, .jpg, etc.). Some of these (the vector graphics ones like pdf, ps, eps and svg) can be opened in Adobe Illustrator for modification.

    As mentioned earlier, if you give plot() a single sequence of values, it assumes they are y values and supplies the x values for you. Garbage in, garbage out. But plot() takes an arbitrary number of arguments of the form: (X1,Y 1, line_style_1, X2,Y 2, line_style_2, etc.), where ’line_style’ is a string that specifies the line style as illustrated in this script called matplotlib2.py

    http://earthref.org/PmagPy/cookbook/

    __________________________________________________ ___________________________________
    A simple test to make sure you can get matplotlib working on your own system is here for the pi
    but its got some good explanations to get the basics going.
    ( if you have problems at all then I have a small script that I run to cover a lot of the dependencies for getting graphs to work )

    Here is the basic minimal install I do on each of my systems - but make sure it suits yours
    with aptitude warnings are given for dependencies and answering no may give better options
    sometimes upgrading packages rather than removing anything ......
    ( I usually avoid removals unless I can see its giving me a later replacement )

    Code:
    #!/bin/bash
    sudo apt-get update
    sudo apt-get install aptitude
    sudo aptitude update
    sudo aptitude install python-matplotlib
    sudo aptitude install tk
    sudo aptitude install python-gtk2-dev
    sudo aptitude install python-pygame
    sudo aptitude install python-qt4-dev
    sudo aptitude install libqglviewer-qt4-dev
    sudo aptitude install python-vtk
    sudo aptitude install python-pip
    sudo pip install visvis
    sudo pip install visvis --upgrade
    sudo pip install mayavi
    sudo aptitude install python-tk
    sudo aptitude install pyqt4-dev-tools
    sudo aptitude install libfltk1.3-dev
    # takes a long time to build this last one ... uncomment if needed
    # sudo pip install pyside
    # better way to do this
    sudo aptitude install pyside-tools
    sudo aptitude install python-wxtools
    sudo aptitude install python-opengl
    http://www3.telus.net/danpeirce/notes/matplotlib.html
    Last edited by 23dornot23d; March 1st, 2014 at 01:30 PM.

  7. #7
    Join Date
    Dec 2013
    Beans
    142
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: QtiPlot or other plotting software: how to assign symbol/marker style to a number

    Thanks for the package list!

    Just for those scientists that never used python or matplot lib the links for basic information:

    http://python.org/ #for python programming language
    http://matplotlib.org/ #for documentation about matplotlib

    python is installed by default in ubuntu and OSX. Then the first thing to install is: idle-python3.3 (for python 3) to learn the basics.

  8. #8
    Join Date
    Dec 2013
    Beans
    142
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: QtiPlot or other plotting software: how to assign symbol/marker style to a number

    Ok thread solved, also tried Veusz, there you can set marker styles and colors based on a number in a column! and its also based on python and versatile!

    Whats great in this forum, is that you come up with a problem and people make you explore sometime other fun possibilites! I just see that the approach here (linux) is different, and people try to adapt the software to their needs, rather than to adapt their needs to the software.

    I just discovered Ipython notebook, its quite enjoyable to learn python for scientific computing, here is the link:

    http://ipython.org/ipython-doc/stabl.../notebook.html

    Just had one problem trying Veusz, when importing data columns in csv, Veusz rearanges my data alphabetically using the header names instead of leaving it be, meaning my column order gets messed up when I want to make an x-y plot... if you know the problem, would appreciate a short comment.

  9. #9
    Join Date
    Apr 2014
    Beans
    5

    Re: QtiPlot or other plotting software: how to assign symbol/marker style to a number

    Thanks for this will give it a go...

  10. #10
    Join Date
    Mar 2007
    Beans
    313

    Re: QtiPlot or other plotting software: how to assign symbol/marker style to a number

    I discovered a nice discussion of reading text tables for python recently:

    http://penandpants.com/2012/03/09/re...s-with-python/

    Currently I am trying the "pandas" python package for this stuff (available in repos). For example, if the headers are aa, bb, zz, cc and I read the data as "dat", then I can get the zz column with dat.zz. Neat.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •