Comments (6)
Kindly bumping again. Would love to have simple savefig
function in UnicodePlots!
from unicodeplots.jl.
Other than that I am a bit reluctant now to make a special save method since it is probably best to just treat a Plot like one would a string
In my opinion there's value in providing the common interface, such as the savefig
method. A lot of the value of Plots.jl
is in not having to relearn slightly different interfaces every time, instead having a common reliable interface. Having the "obvious thing" (saving with savefig
) would lead a smoother interface, even if all it did underneath was a print
.
from unicodeplots.jl.
@tbreloff I'll soon implement a save to txt file method. What would you suggest the method name/signature to be? safefig(myplot, "filename.txt")
or would you suggest avoiding name collisions?
from unicodeplots.jl.
Cool! Shouldn't matter to me... I only ever import, so all calls are
prefaced (UnicodePlots.savefig, etc). Feel free to use the same naming as
in Plots.
On Thu, Oct 29, 2015 at 4:38 PM, Christof Stocker [email protected]
wrote:
@tbreloff https://github.com/tbreloff I'll soon implement a save to txt
file method. What would you suggest the method name/signature to be? safefig(myplot,
"filename.txt") or would you suggest avoiding name collisions?—
Reply to this email directly or view it on GitHub
#28 (comment)
.
from unicodeplots.jl.
Alright. Looking at this now it seems I don't obey the subtle intended distinction between show
and print
, resulting in print
writing color decorated text into any stream (even files), which make them unreadable. So that's the first thing to fix.
Other than that I am a bit reluctant now to make a special save method since it is probably best to just treat a Plot
like one would a string (i.e. write them to a file the same way). An option to save the fully color decorated string may be useful though. especially if I ever want to create real tests for this package.
from unicodeplots.jl.
Bump.
Perhaps there's an obvious way, without a modification here? If so, I haven't been able to figure it out. When print or show to a file, an IOStream I get:
"�[37m"
and so forth.
I've been copying from the REPL to a text file, which works but gets boring.
from unicodeplots.jl.
Related Issues (20)
- support polar heatmap
- Filled contour plots HOT 5
- invert matrix when using heatmap HOT 3
- Heatmap colorbar with non-finite values HOT 3
- Import latency issue HOT 4
- Backend example of PlotDocs broken HOT 3
- Request: Leverage package extensions HOT 7
- redefinition warnings and error on exit when using with CairoMakie HOT 14
- [FR] try to remove the `StaticArrays` dependency
- Plot border and axis markers are the same color as background HOT 5
- histogram not defined HOT 6
- [FR] swap `lineplot` function order
- [FR] log transformed bins in histogram HOT 1
- Despite Project.toml update, StatsBase 0.34 is not compatible with UnicodePlots 3.5.2 HOT 3
- Error when using Uniful together with ylim
- Can I use UnicodePlots.jl by launching Julia script via command line (not in REPL mode) HOT 3
- Heatmap handling of NaN HOT 4
- Add way to autolimit a plot that has been added to HOT 3
- spy + xflip / yflip
- heatmap errors for -Inf HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unicodeplots.jl.