LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-19-2017, 04:12 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 2,083

Rep: Reputation: 173Reputation: 173
Alternative to LABPLOT for Linux?


Hello,

I am looking for an alternative of LABPLOT for XFCE,... JWM desktop.

Labplot is ok, but it needs KDE.

Thank you
Attached Thumbnails
Click image for larger version

Name:	Labplot_screenshot.jpg
Views:	23
Size:	131.0 KB
ID:	24551  
 
Old 03-21-2017, 10:21 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Matplotlib is something I recently came across that thus far has been a pleasant surprise. I'm only familiar with the python interface and currently run it in a KDE desktop so you'd have to look at it more closely for your use case.

Last edited by dijetlo; 03-21-2017 at 10:30 AM.
 
Old 03-21-2017, 09:21 PM   #3
Soitgoes
LQ Newbie
 
Registered: Oct 2016
Location: US
Distribution: FreeBSD/Slackware
Posts: 13

Rep: Reputation: Disabled
Octave, R, Python with matplotlib. I guess it depends on what you are plotting and how. Do you have data sets generated or are you plotting simple functions? I use pgfplots for LaTeX documents which works great for reports I need. Not sure what your end goal is.
 
Old 03-23-2017, 02:04 AM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 2,083

Original Poster
Rep: Reputation: 173Reputation: 173
Quote:
Originally Posted by Soitgoes View Post
Octave, R, Python with matplotlib. I guess it depends on what you are plotting and how. Do you have data sets generated or are you plotting simple functions? I use pgfplots for LaTeX documents which works great for reports I need. Not sure what your end goal is.
Hi,

Thank you. I'd rather have a plot of data sets X and Y for 4-10 curves.
Usually they look a bit like this (herewith).
Attached Thumbnails
Click image for larger version

Name:	Scatter_decay_final.png
Views:	6
Size:	11.6 KB
ID:	24575  
 
Old 03-23-2017, 08:12 AM   #5
Soitgoes
LQ Newbie
 
Registered: Oct 2016
Location: US
Distribution: FreeBSD/Slackware
Posts: 13

Rep: Reputation: Disabled
Here are some examples of R and pgfplots

Let me preface this by saying I am not an expert in either R nor pgfplots but I will show you some working examples and you can decide whether or not these can or will work for you.

Code:
\documentclass[a4paper,11pt]{article}
\usepackage{pgfplots}
% This is a minimum working example of something I could use in a LaTeX document to produce a decent plot 
\begin{document}
\begin{figure}[htp]
  \centering
  \begin{tikzpicture}
    \begin{axis}[
      %This is where I define my title, x and y-axis labels, grid type, etc...
      title={\tiny{I-V Curves of MOSFET}},
      xlabel={\tiny{$V_{DS}(V)$}},
      ylabel={\tiny{$I_{D}(A)$}},
      grid=major,
      legend pos=outer north east,
      ]
      % The x= and y= are both columns in my data file 'procedure_1a_iv_final', which is in my working directory
      \addplot [black] table [x={Vds}, y={Vgs200}] {procedure_1a_iv_final};
      \addlegendentry{\tiny{$V_{GS}=2.00V$}}
      \addplot [gray] table [x={Vds}, y={Vgs205}] {procedure_1a_iv_final};
      \addlegendentry{\tiny{$V_{GS}=2.05V$}}
      \addplot [brown] table [x={Vds}, y={Vgs210}] {procedure_1a_iv_final};
      \addlegendentry{\tiny{$V_{GS}=2.10V$}}
      \addplot [violet] table [x={Vds}, y={Vgs215}] {procedure_1a_iv_final};
      \addlegendentry{\tiny{$V_{GS}=2.15V$}}
    \end{axis}
  \end{tikzpicture}
  % I can caption the plot or figure and refer to it later in my write-up using \ref{}
  \caption{Put your caption here}
  \label{iv:curves}
\end{figure}

\end{document}
Now, for the same plot in R. You can either just use the R interpreter similar to Pythons' or R studio. But, in essence you build the plot. I could write a script not unlike a Bash script but I prefer R studio(though I typically shy away from IDE's).

Code:
> curves <- read.table("procedure_1a_iv_final", header=TRUE, sep="")
> x <- curves$Vds
> plot(x, curves$Vgs215, col="blue", type="l", ann=FALSE)
> lines(x, curves$Vgs210, col="red", type="b")
> lines(x, curves$Vgs205, col="orange", type="l")
> lines(x, curves$Vgs200, col="yellow")
> title("MOSFET I-V Curves", xlab="Vds Voltage(V)", ylab="Id Current(A)")
Notice, I said 'build' above. This is because plot() by itself begins a new plot. The lines() function will add additional curves to the existing plot.

I myself have just begun to become familiar with R and I really like it. You can import data from Excel, csv files, databases, directly off the web, plain text files containing data(as I have done in the examples above), etc. Plus, there is built-in functionality to normalize the data, find standard deviation, etc.

Anyway, I hope this helps, or at least gives you a better idea of some other options apart from LabPlots. If you have any additional questions, let me know and I will try to answer them.

Regards
Attached Thumbnails
Click image for larger version

Name:	tex_sample.png
Views:	3
Size:	27.9 KB
ID:	24579   Click image for larger version

Name:	mosfet_example.png
Views:	3
Size:	25.9 KB
ID:	24580  
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: LabPlot and SciDAVis Collaborate on the Future of Free Scientific Plotting LXer Syndicated Linux News 0 10-17-2009 06:10 AM
LabPlot ? LOL Ubuntu 1 11-10-2005 09:00 PM


All times are GMT -5. The time now is 02:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration