SP Flash Tool does not recognize the firmware scatter file

I have a neffos X1 Lite and it seems that it boots only in the twrp recovery console.

Anyway I am trying to restore my official recovery console (i have no backup) using the official firmware http://www.neffos.com/en/support/download/X1-Lite

Inside this zipped file, there is a file scatter.txt that contains the following content.

preloader 0x0 pgpt 0x0 recovery 0x8000 para 0x1008000 expdb 0x1088000 frp 0x1a88000 ppl 0x1b88000 nvdata 0x1bc8000 metadata 0x3bc8000 protect1 0x5bc8000 protect2 0x63c8000 seccfg 0x7000000 proinfo 0x7040000 oemkeystore 0x7800000 md1img 0x8000000 md1dsp 0x9800000 md1arm7 0x9c00000 md3img 0x9f00000 nvram 0xa400000 lk 0xa900000 lk2 0xaa00000 boot 0xab00000 logo 0xbb00000 tee1 0xc300000 tee2 0xc800000 secro 0xcd00000 keystore 0xd300000 system 0xe000000 cache 0xeb800000 userdata 0x106800000 flashinfo 0xFFFF0080 sgpt 0xFFFF0000 

Now, using SP_Flash_Tool-5.1916_Win to load this scatter file I get an error “Invalid format”. So, how am I supposed to un-brick my phone? I still have access to ADB, Fastboot and no matter what I can not boot to OS.

enter image description here

SP Flash Tool does not recognize the firmware scatter file

I have a neffos X1 Lite and it seems that it boots only in the twrp recovery console.

Anyway I am trying to restore my official recovery console (i have no backup) using the official firmware http://www.neffos.com/en/support/download/X1-Lite

Inside this zipped file, there is a file scatter.txt that contains the following content.

preloader 0x0 pgpt 0x0 recovery 0x8000 para 0x1008000 expdb 0x1088000 frp 0x1a88000 ppl 0x1b88000 nvdata 0x1bc8000 metadata 0x3bc8000 protect1 0x5bc8000 protect2 0x63c8000 seccfg 0x7000000 proinfo 0x7040000 oemkeystore 0x7800000 md1img 0x8000000 md1dsp 0x9800000 md1arm7 0x9c00000 md3img 0x9f00000 nvram 0xa400000 lk 0xa900000 lk2 0xaa00000 boot 0xab00000 logo 0xbb00000 tee1 0xc300000 tee2 0xc800000 secro 0xcd00000 keystore 0xd300000 system 0xe000000 cache 0xeb800000 userdata 0x106800000 flashinfo 0xFFFF0080 sgpt 0xFFFF0000 

Now, using SP_Flash_Tool-5.1916_Win to load this scatter file I get an error “Invalid format”. So, how am I supposed to un-brick my phone? I still have access to ADB, Fastboot and no matter what I can not boot to OS.

enter image description here

How to plot a scatter graph

I feel embarrassed to even ask this question. I’m unable to plot a scatter graph based upon the data I have.

My data looks like

    A        B        C        D    Mon      Tues     Weds     Thrs     2        9        6         9     8        9        9         8     5        4        7         3     6        2        4         4     2        7        9         5 

This is a representation of how I’d like the chart to be (the image doesn’t try to correlate to the demo values in the above table)

enter image description here

I’m unable to do so. The below shows my effort

enter image description here

For some reason, it doesn’t show Monday and furthermore I can’t get the axis correct… I can’t get (as per the image above) an Axis with days of the week!

What am I doing wrong?

Excel scatter chart showing dates before and after dates in dataset

I have a CSV file containing temperature and humidity readings for a date range that I’m charting with a scatter chart. The first date in the data set is 03-Mar-2019 and the last is 09-Mar-2019. Once I chart this data I get a chart that starts on 02-Mar-2019 and ends on 11-Mar-2019.

Example of the chart

How do I make the chart run edge to edge without these two additional empty days? Thanks!

Google sheets, scatter plot, multiple datasets, with datapoint labels

I want to create a scatterplot in Google sheets with multiple datasets, and yet still be able to add data labels for each data point. Additionally, it’s two independent axis, which means some X values will have multiple Y values.

Example sheet: This sheet is almost what I want, except I want data labels to show up beside each point and I also want to do multiple different color datasets on the same plot. https://docs.google.com/spreadsheets/d/1EZ78WNVvvpggP8L52H-yuh-ICJEkd9XCOrX752nHw1I/edit?usp=sharing

enter image description here

How to use x-axis as data and not just labels for scatter chart?

I’m plotting 7 data point shown below. Physics Lab Data Table

The column on the left represents my x-values (horizontal axis) and the column on the right represents my y-values (vertical axis). The first row labels the data.

When I use Google Sheets to create a scatter chart with this data, it ignores the values in the left column, and just uses them as labels for values in the right column. Bad Physics Lab Scatter Chart

See the x-axis. The data is out of numerical order, and the scale of the chart displays as if the points are all equally spaced apart when they are not.

I would like to display these points in a way that it accurately represents the data.

Please note that I do not want to use a bubble chart. This is for a lab report and the bubble chart looks unprofessional and silly.

Generating scatter plot from csv file

Assume you have the following data in the form of a csv-file. The content looks something like this

,Action,Comedy,Horror 1,650,819, ,76,63, 2,,462,19 ,,18,96 3,652,457,18 ,75,36,89 

which can be interpreted as a table of the form

           Action       Comedy       Horror       1           650          819                  76           63        2                        462           19                           18           96 3           652          457           18              75           36           89 

The goal was to write a function that takes a lst with genre names as elements in form of a str and returns a scatter plot of the data, where the data that should appear on the scatter plot is in the second row of every index (76, 63 , and , 18, 96 and 75, 36, 89). The function should be able to distinguish between two-dimensional and three-dimensional scatter plots depending on the input. The code I wrote for this is

from pandas import DataFrame import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D   def genre_scatter(lst):     """     Creates an scatter plot using the data from genre_scores.csv.     :param lst: a list with names of the genres considered     :return: saves a pdf-file to the folder Fig with the name gen_1_ge_2.pdf     """     # First we need to determine the right columns of genre_user_scores.     first_row = [row for row in reader(open('genre_user_scores.csv', 'r'))][0]     index = [first_row.index(x) for x in lst]      # Get the relevant data in the form of a DataFrame.      # Please note that the first row of data for every index is not necessary for this task.     data = DataFrame.from_csv('genre_user_scores.csv')     gen_scores = [data.dropna().iloc[1::2, ind - 1].transpose() for ind in index]      # rewrite the values in an flattened array for plotting     coordinates = [gen.as_matrix().flatten() for gen in gen_scores]      # Plot the results     fig = plt.figure()     if len(coordinates) == 2:         plt.scatter(*coordinates)         plt.text(70, 110, "pearson={}".format(round(pearson_coeff(coordinates[0], coordinates[1]), 3)))         plt.xlabel(lst[0])         plt.ylabel(lst[1])         plt.savefig("Fig/{}_{}.pdf".format(*lst))     else:         ax = fig.add_subplot(111, projection='3d')         ax.scatter(*coordinates)         ax.update({'xlabel': lst[0], 'ylabel': lst[1], 'zlabel': lst[2]})         plt.savefig("Fig/{}_{}_{}.pdf".format(*lst))     plt.show()     plt.close("all")   if __name__ == "__main__":     genre_scatter(['Action', 'Horror', 'Comedy']) 

The code works and I’m happy with the output but there are a few things that bug me and I’m not sure if I used them right.

  1. I’m not incredibly familiar with list comprehension (I think that is what you call expressions of the form [x for x in list]. Please correct me if I’m wrong) and haven’t used them very often, so I’m not quite sure if this here was the right approach for the problem. My biggest concern is the first use of this kind of expression, where I basically need the first row of the csv file but create a list with all the rows only to use the first… Is there a smarter way to do this?
  2. Is there a better way to label the axes? Ideally some function where I just could pass the *lst argument?
  3. I’d like to implement something that makes sure that lst isn’t longer than three elements (since four dimensional plots aren’t really a thing). The only way I know to do this is assert len(lst) <=3, which gets the job done but it would be nice if it also could raise a useful error message. Any tips on how to pull that off?

Any further comments about the code are of course also welcome.


Note: I’m not sure if the beginner tag is appropriate here. I usually only do computational math/physics stuff, so I’m completely new to the world of DataFrames, dictionaries, list comprehension, etc.

Preference: Info-tips (info tooltips) or stationary info-areas for Scatter Plots?

I’ve seen two different ways to display information about a point on an scatter plot

  1. A tooltip (info tip) which appears next to your cursor
  2. When you hover over a point, information will display in the same location regardless of what point was clicked (on the bottom or the side or the chart).

There are benefits to both. I was hoping to find some best practices for these two ways to display information.

What do people usually prefer?

a true tooltip has the benefit of always being close to you point which you are hovering over; your eyes do not need to travel far to get to the information. On the other hand. I can see where it would get annoying to continually see the tooltip blinking off and on as you move between 300-400 different data points.