Author

Topic: Electrum Plot (Read 138 times)

legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
September 30, 2021, 05:40:51 AM
#6
I have done some digging in the Electrum protocol documentation some time ago and it said that the method for plotting total balance has been deprecated so that's probably why it's no longer bundled in the AppImage.
legendary
Activity: 2856
Merit: 7410
Crypto Swap Exchange
September 30, 2021, 04:56:34 AM
#5
Assuming you install Electrum from source code, you just need to run this command. But if you AppImage, AFAIK it's impossible because AppImage version bundle it's own Python.

Code:
pip install matplotlib
I downloaded Electrum standalone version from their website.

I am not able to run any "pip" commands in Electrum console. I have matplotlib installed in my python environment, but I can't use it inside electrum. I wasn't able to find a solution for this in the web.

You're supposed to run the command on your terminal/command prompt. Besides, it won't work since standalone/portable version is similar with AppImage, where they bundle their own Python.

Are you talking about the python version of electrum? https://electrum.org/#download (First option here)

Yes.
hero member
Activity: 952
Merit: 938
September 29, 2021, 10:17:03 AM
#4
I downloaded Electrum standalone version from their website.

I am not able to run any "pip" commands in Electrum console. I have matplotlib installed in my python environment, but I can't use it inside electrum. I wasn't able to find a solution for this in the web.

Are you talking about the python version of electrum? https://electrum.org/#download (First option here)

If you download the standalone executable (exe, AppImage, etc) then you won't be able to use the plot functionality, that's pretty much it. You can't install extra packages like matplotlib into Electrum.

This is because the standalone version doesn't allow you to install anything extra, it comes already prepackaged with whatever the devs decide, and they decided not to include matplotlib et al because it's very large. They also decided to not remove the Plot item from the menu even though it's not available. This was discussed somewhere, and they decided it was not worth the effort to do it.

It's just easier to export the wallet data and use another tool to make a plot. This probably will give you even more information anyway, as the plot functionality in Electrum is very basic.

I just made up some transactions and used the source code to emulate roughly what would be presented in an Electrum plot. It would look a bit like this:



If you're still interested in building Electrum with the plot functionality, you can follow these instruction to compile the AppImage(you would also need to make sure to add matplotlib and configure it correctly):

https://github.com/spesmilo/electrum/tree/master/contrib/build-linux/appimage
legendary
Activity: 2212
Merit: 5622
Non-custodial BTC Wallet
September 29, 2021, 09:09:13 AM
#3
Assuming you install Electrum from source code, you just need to run this command. But if you AppImage, AFAIK it's impossible because AppImage version bundle it's own Python.

Code:
pip install matplotlib

I downloaded Electrum standalone version from their website.

I am not able to run any "pip" commands in Electrum console. I have matplotlib installed in my python environment, but I can't use it inside electrum. I wasn't able to find a solution for this in the web.

Are you talking about the python version of electrum? https://electrum.org/#download (First option here)
legendary
Activity: 2212
Merit: 5622
Non-custodial BTC Wallet
September 28, 2021, 01:14:01 PM
#2
I've noticed that the AppImage of Electrum doesn't come with the required plugins to use the plot functionality (wallet->history->plot).

Is there any offline tool that takes as an input an Electrum export(wallet->history->export) and plots the history of the wallet?

I could use some custom graph using that file, but just wondering if there's something already out there.

My electrum says it lacks " matplotlib" which is a python lib to plot charts. It is a huge python library which requires many dependencies as well... I don't know how to install python packages in Electrum. If anyone can help...

Alternatively, you can just plot that chart in excel easily from the .csv file.

Just click Wallet > History > export > CSV

A CSV file is very easy to use, it is basically an excel table.

Just open EXCEL and click DATA>FROM FILE > FROM CSV



Then you can generate all charts you like using excel.
hero member
Activity: 952
Merit: 938
September 27, 2021, 10:37:03 PM
#1
I've noticed that the AppImage of Electrum doesn't come with the required plugins to use the plot functionality (wallet->history->plot).

Is there any offline tool that takes as an input an Electrum export(wallet->history->export) and plots the history of the wallet?

I could use some custom graph using that file, but just wondering if there's something already out there.
Jump to: