Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
 Home Forums HCL Reviews Tutorials Articles Register Search Today's Posts Mark Forums Read
 LinuxQuestions.org Alternative to LABPLOT for Linux?
 User Name Remember Me? 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

 03-19-2017, 04:12 PM #1 Xeratul Senior Member   Registered: Jun 2006 Location: Debian Land Posts: 2,083 Rep: 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
 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: 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.
 03-21-2017, 09:21 PM #3 Soitgoes LQ Newbie   Registered: Oct 2016 Location: US Distribution: FreeBSD/Slackware Posts: 13 Rep: 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.
03-23-2017, 02:04 AM   #4
Xeratul
Senior Member

Registered: Jun 2006
Location: Debian Land
Posts: 2,083

Original Poster
Rep:
Quote:
 Originally Posted by Soitgoes 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

 03-23-2017, 08:12 AM #5 Soitgoes LQ Newbie   Registered: Oct 2016 Location: US Distribution: FreeBSD/Slackware Posts: 13 Rep: 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

 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 Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post LXer Syndicated Linux News 0 10-17-2009 06:10 AM LOL Ubuntu 1 11-10-2005 09:00 PM

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

 Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap -
 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.
 Syndicate Latest Threads   LQ News Twitter: @linuxquestions Facebook: linuxquestions Google+: linuxquestions